how to change list order
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-25-2023 11:59 PM
Hi,
The existing code retrieves a list of positions for the caller, including a default position named "other" that is universally assigned to all users. Presently, the "other" position is listed first, followed by the caller's positions. I am seeking assistance to reverse this order, ensuring that the caller's positions are displayed first, with "other" positioned at the end of the list.
The sysID referenced in line 18 corresponds to the value "other" from the u_position table.
this is what the script returns:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-26-2023 03:02 AM - edited ‎12-26-2023 03:03 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-26-2023 03:13 AM
@Shir Sharvit Please refer to the knowledge article https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0725720 to set the sort order for the reference field.
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-26-2023 03:17 AM
Ok, what should I write in attributes so that the value "other" is the last in the list?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-26-2023 03:21 AM
Try using the name field for sorting.