How to get sortorder

How do we get the order in code.

Litium version: 7

You can take a look at this topic:

You will need to save the sort order in the category in BO.
You can use this when presenting in a category and not in search results.

There’s a .ProductSortOrder property on the category object - a collection of Guids - if you need to access the order programmatically. If the products haven’t been sorted, it will be empty.