Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Sort Employee center Catalog item in alphabetical order

BoHyun Jung
Mega Sage

i want to sort Catalog items in alphabetical order!!

 

BoHyunJung_0-1692858689172.png

 

8 REPLIES 8

Ravi Chandra_K
Kilo Patron
Kilo Patron

Hello @BoHyun Jung 

Greetings!

you have to change the following line of code in the HTML of the SC popular items widget

from

<div class="col-sm-6 col-md-4" ng-repeat="item in data.items | orderBy: '-count' | limitTo: data.limit"> 
to 
<div class="col-sm-6 col-md-4" ng-repeat="item in data.items | orderBy: 'name' | limitTo: data.limit"> 

refer below article which explains the same :

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0745289

Please Mark the Answer as correct solution and helpful if helped!

 

Kind Regards,

Ravi Chandra.

Hello Ravi Chandra_K

 

Is there any other way to change widget?😅

 

and i want to sort taxonomy catalog items not popular items!

@BoHyun Jung  this option is not working?

RaviChandra_K_0-1692860572343.png

 

default sort by is popular. but i want to change default to A-Z