- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi everyone.
I have a question regarding the sort order of Knowledge Articles.
In our Knowledge Base, when a user selects "Views" as the sort criteria, articles are displayed in order of view count. However, I would like to know the logic when multiple articles have the same number of views.
Solved! Go to Solution.
- Labels:
-
Cost Management (ITSM)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @zhienqian,
When sorting by Views in the ServiceNow Knowledge Base (specifically the Service Portal or Knowledge Homepage), if multiple articles have the same view count, there is no default secondary sort logic defined out-of-the-box. The system does not automatically apply a "tie-breaker" like Published Date or Alphabetical order; instead, the order of tied articles is determined by the internal database or search index retrieval order (often effectively arbitrary or based on sys_id).
To enforce a specific secondary order (e.g., sorting by Last Modified for tied view counts), you would need to clone and customize the underlying Knowledge List widget or Search widget to include a secondary sort field in the query.
Plus, check this video as well to apply different kind of sortings:
https://www.youtube.com/watch?v=e7mE7ytYey0
If you find my response helpful, mark it as helpful and accepted solution.
Regards,
Maham Tahir.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @zhienqian,
When sorting by Views in the ServiceNow Knowledge Base (specifically the Service Portal or Knowledge Homepage), if multiple articles have the same view count, there is no default secondary sort logic defined out-of-the-box. The system does not automatically apply a "tie-breaker" like Published Date or Alphabetical order; instead, the order of tied articles is determined by the internal database or search index retrieval order (often effectively arbitrary or based on sys_id).
To enforce a specific secondary order (e.g., sorting by Last Modified for tied view counts), you would need to clone and customize the underlying Knowledge List widget or Search widget to include a secondary sort field in the query.
Plus, check this video as well to apply different kind of sortings:
https://www.youtube.com/watch?v=e7mE7ytYey0
If you find my response helpful, mark it as helpful and accepted solution.
Regards,
Maham Tahir.
