- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2022 09:53 AM
Hi, I know how to change the order on the list at the left but how can I change the order on the Icons in the middle and right? I can't do it through the 'order' value in the categories table. Any ideas? I tried editing the widget but to no avail..
Thank you for your time and help.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2022 10:57 AM
Hello ,
You can achieve by making some changes in the widget named as "Categories".
var sc = new GlideRecord('sc_category');
sc.addQuery('sys_class_name', 'sc_category');
sc.addActiveQuery();
sc.orderBy('title'); // please edit this line with order in the widget & try it out
data.sc_catalog = $sp.getValue('sc_catalog');
............!
You will find the above code in the server side.
Mark Correct or Helpful if it helps.
Cheers..!
Happy Learning:)
Tushar
Cheers..!
Happy Learning:)
Tushar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2022 10:20 AM
Hi,
There is a field "order" field on catalog item, which controls which catalog item should be shown first.
It's not displayed in the catalog item OOB, but you can add it, or edit the values directly in the list view.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2022 10:55 AM
Thank you very much for your time and your kind response.
I am using that field but it only rearranges the Categories on the list side (on the panel of the left)
But I need to re-arrange the icons on the right, the "Showing 6 categories of this catalog". If you have any idea on how to do it, I will super appreciate it.
Once again, thank you for your time and your kind response.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2022 10:57 AM
Hello ,
You can achieve by making some changes in the widget named as "Categories".
var sc = new GlideRecord('sc_category');
sc.addQuery('sys_class_name', 'sc_category');
sc.addActiveQuery();
sc.orderBy('title'); // please edit this line with order in the widget & try it out
data.sc_catalog = $sp.getValue('sc_catalog');
............!
You will find the above code in the server side.
Mark Correct or Helpful if it helps.
Cheers..!
Happy Learning:)
Tushar
Cheers..!
Happy Learning:)
Tushar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2022 11:26 AM
Thank you both, and thanks for the solution. the name of the widget was a bit different because it was a copy made from an oob widget and worked by other devs before, but with your advice I was able to find the piece of code in charge of sorting those items and was able to add the .orderBy method.
Thanks!