There are two sort filters in StoreFront.LiquidThemeEngine
StandartFilters:
public static IEnumerable Sort(object input, string property = null)
ArrayFilters:
/// Sorts the elements of an array by a given attribute of an element in the array.
/// {% assign sorted = pages | sort:"date:desc;name" %}
public static object Sort(object input, string sort)
When we use sort filter in theme, scriban engine takes the implementation from StandartFilters, which doesn't support sort direction and multiple sort fields. How can I use the version from ArrayFilters and do we really need two filters?
There are two sort filters in StoreFront.LiquidThemeEngine StandartFilters: public static IEnumerable Sort(object input, string property = null) ArrayFilters: /// Sorts the elements of an array by a given attribute of an element in the array. /// {% assign sorted = pages | sort:"date:desc;name" %} public static object Sort(object input, string sort)
When we use sort filter in theme, scriban engine takes the implementation from StandartFilters, which doesn't support sort direction and multiple sort fields. How can I use the version from ArrayFilters and do we really need two filters?