Page History
...
Name | Type | Description | |
---|---|---|---|
Parameter(s) | collection | java.util.Collection | A collection to be sorted. |
fieldName | java.lang.String | A fieldName to be sorted and the sorting direction. | |
Return | - | java.util.Collection | A sorted collection. |
For example:
Code Block | ||
---|---|---|
| ||
#foreach ($rel in $sorter.humanSort($package, "name:desc"))
$rel.name
#end |
- $package is the collection to be sorted.
- "name:desc" is separated by ":" in two parts:
- The first part is to identify fieldName to be sorted.
- The second part is the option to identify the sorting scheme. Sometimes, the order is not identified. It is ascending by default.
...
Name | Type | Description | |
---|---|---|---|
Parameter(s) | Collection | java.util.Collection | A collection to be sorted. |
Return | - | java.util.Collection | A sorted collection. |
For example:
Code Block | ||
---|---|---|
| ||
#foreach ($rel in $sorter.humanSort($package))
$rel.name
#end |
- $package is the collection to be sorted.
...