Changing or adding custom Ordering of categories in KB Categories-KBv3 widgetDescription<!-- div.margin{ padding: 10px 40px 40px 30px; } table.tocTable{ border: 1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); padding-top: .6em; padding-bottom: .6em; padding-left: .9em; padding-right: .6em; } table.noteTable{ border:1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); width: 100%; border-spacing:2; } table.internaltable { white-space:nowrap; text-align:left; border-width: 1px; border-collapse: collapse; font-size:14px; width: 85%; } table.internaltable th { border-width: 1px; padding: 5px; border-style: solid; border-color: rgb(245, 245, 245); background-color: rgb(245, 245, 245); } table.internaltable td { border-width: 1px; padding: 5px; border-style: solid; border-color: #E0E0E0; color: #000000; } .title { color: #D1232B; font-weight:normal; font-size:28px; } h1{ color: #D1232B; font-weight:normal; font-size:21px; margin-bottom:-5px } h2{ color: #646464; font-weight:bold; font-size:18px; } h3{ color: #000000; font-weight:BOLD; font-size:16px; text-decoration:underline; } h4{ color: #646464; font-weight:BOLD; font-size:15px; text-decoration:; } h5{ color: #000000; font-weight:BOLD; font-size:13px; text-decoration:; } h6{ color: #000000; font-weight:BOLD; font-size:14px; text-decoration:; } ul{ list-style: disc outside none; margin-left: 0; } li { padding-left: 1em; } --> There are requirements where user would like to change the sorting order of the categories or incorporate custom order in the knowledge categories widget displayed in Service Portal ==> Knowledge. ResolutionWidget Responsible for displaying the Knowledge Categories: KB Categories - KBv3 1) Backup the existing widget (KB Categories - KBv3) 2) Add your sort query in the Server Script section eg: cats.addActiveQuery(); cats.orderByDesc('label'); cats.addQuery("parent_id", data.kb); cats.query(); Note, the line that is highlighted is added to sort the query by the label column in descending order. 3) Remove the 'orderBy:label' from within the angular ng-repeat list eg: Change from the following: <li ng-repeat="category in c.data.categories | orderBy:'label'" ng-if="category.count" class="list-group-item"> To <li ng-repeat="category in c.data.categories" ng-if="category.count" class="list-group-item"> Note, the 'orderBy:label' has been removed from the ng-repeat. 4) Save the Widget and Test. Please see screenshot