web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Answered

Sort the displayed category in Knowledge Base home page alphabetically based on title

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Is there any way we can sort the displayed categories on Knowledge base home alphabetically?

Current Code to display categories:

<div class="list-group unstyled">
{% for category in categories %}
<a href="{{ category_url | add_query: 'id', category.categorynumber }}" class="list-group-item">
{{ category.title }}
</a>
{% endfor %}
</div>
I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    Hi Pratiksha,

    You can use order_by liquid filter:

    Returns the elements of an array ordered by a given attribute of the elements of the array.
    Optionally, you can provide desc as a second parameter to sort the elements in descending order, rather than ascending.

    https://docs.microsoft.com/en-us/powerapps/maker/portals/liquid/liquid-filters#order_by  

    Go portal Management >  Web Template > Knowledge Base - Home to add following code:pastedimage1632217337122v2.png

    Test Result:

    pastedimage1632217586215v3.png

  • Community Member Profile Picture
    on at

    Hi Partner,

    Has the problem been solved? Any updates?

    Please click Yes under "Did this answer your question?" to close this thread.

     Image

    Thanks. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 51 Super User 2026 Season 1

#2
James White Profile Picture

James White 21

#3
FSRon Profile Picture

FSRon 19

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans