Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

 Name Type Description 
 Parameter(s) collection java.util.Collection A collection
to be sorted.
 fieldName java.lang.StringA fieldName to
be sorted and
the sorting direction.
 Return - java.util.CollectionA sorted collection.

For example:Image Removed

Code Block
languagetext
#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.CollectionA collection
to be sorted.
 Return - java.util.Collection A sorted collection. 

For example:Image Removed

Code Block
languagetext
#foreach ($rel in $sorter.humanSort($package))
$rel.name
#end
  • $package is the collection to be sorted.