![]() |
||
|
||
![]() |
The first subvariable of the sequence. Template processing will die with error if the sequence is empty.
The last subvariable of the sequence. Template processing will die with error if the sequence is empty.
The number of subvariables in sequence (as a numerical value). The highest possible index in sequence s is s?size - 1 (since the index of the first subvariable is 0) assuming that the sequence has at least one subvariable.
Returns the sequence sorted in ascending order. This will work only if all subvariables are strings, or if all subvariables are numbers. If the subvariables are strings, it uses locale (language) specific lexical sorting. For example:
![]() | ![]() | ![]() | |
![]() |
| ![]() | |
![]() | ![]() | ![]() |
will print (with US locale at least):
![]() | ![]() | ![]() | |
![]() |
| ![]() | |
![]() | ![]() | ![]() |
Returns the sequence of hashes sorted by the given hash subvariable in ascending order. The rules are the same as with the sort built-in, except that the subvariables of the sequence must be hashes, and you have to give the name of a hash subvariable that will decide the order. For example:
![]() | ![]() | ![]() | |
![]() |
| ![]() | |
![]() | ![]() | ![]() |
will print (with US locale at least):
![]() | ![]() | ![]() | |
![]() |
| ![]() | |
![]() | ![]() | ![]() |
![]() |
||
|
||
![]() |
![]() |
|
Page generated: 2004-06-15 22:17:59 GMT | FreeMarker Manual -- For FreeMarker 2.3 |