Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
How to sort by a column in Data Table from URL Definition Widget. - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • How to sort by a column in Data Table from URL Definition Widget.
KB0724523

How to sort by a column in Data Table from URL Definition Widget.


4677 Views Last updated : Apr 7, 2024 public Copy Permalink
KB Summary by Now Assist

Issue

Description


How to sort the list by a column (example: number) in descending order using Data Table from URL Definition Widget. 

Procedure


Currently the only way to sort from a Data Table from URL Definition widget is using the URL parameters to display the data in a sorted list. 

For example, if you click on Sort (z to a) on number column on Service Portal, the URL will get updated to:

https://<instance-name>.service-now.com/sp?id=list&table=<table-name>&filter=&target_page_id=ticket&spa=1&p=1&o=number&d=desc 

The two extra added paramaters "o=number&d=desc" will display the expected sorted list. There is no pre-defined way to set the sorting for this widget. 

As an alternative, Data Table from Instance Definition widget can be used which lets you define the "Order by" and "Order Direction" fields to sort by required column. These fields would be need to be updated on widget instance. 

Applicable Versions


All versions

Additional Information


Data Table from URL definition widget

Data Table from Instance definition widget


The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.