Sort
This placeholder allows you to sort maps and lists in Velocity.
Methods
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
$sort.asc(unsortedList) | List<String> | Returns the list in ascending order.
| ||||||
$sort.asc(unsortedMap) | Map<String,String> | Returns the map in ascending order by key.
| ||||||
$sort.ascByValue(unsortedMap) | Map<String,String> | Returns the map in ascending order by value.
| ||||||
$sort.desc(unsortedList) | List<String> | Returns the list in descending order.
| ||||||
$sort.desc(unsortedMap) | Map<String,String> | Returns the map in descending order by key.
| ||||||
$sort.descByValue(unsortedMap) | Map<String,String> | Returns the map in descending order by value.
|