Sets the type of the sorter.
You might specify either "auto", "auto(FIELD_NAME1[,FIELD_NAME2] ...)"(since 3.5.3),
"auto(
number)" (since 5.0.6) or "none".
If "client" or "client(number)" is specified,
the sort functionality will be done by Javascript at client without notifying
to server, that is, the order of the component in the row is out of sync.
- "client" : it is treated by a string
- "client(number)" : it is treated by a number
Note: client sorting cannot work in model case. (since 5.0.0)
If "auto" is specified,
#setSortAscending and/or
#setSortDescending
are called with
ListitemComparator, if
#getSortDescending and/or
#getSortAscending are null.
If you assigned a comparator to them, it won't be affected.
The auto created comparator is case-insensitive.
If "auto(FIELD_NAME1, FIELD_NAME2, ...)" is specified,
#setSortAscending and/or
#setSortDescending
are called with
FieldComparator, if
#getSortDescending and/or
#getSortAscending are null.
If you assigned a comparator to them, it won't be affected.
The auto created comparator is case-sensitive.
If "auto(LOWER(FIELD_NAME))" or "auto(UPPER(FIELD_NAME))" is specified,
#setSortAscending and/or
#setSortDescending
are called with
FieldComparator, if
#getSortDescending and/or
#getSortAscending are null.
If you assigned a comparator to them, it won't be affected.
The auto created comparator is case-insensitive.
If "auto(number)" is specified,
#setSortAscending and/or
#setSortDescending
are called with
ArrayComparator. Notice that the data must
be an array and the number-th element must be comparable (
Comparable).
If "none" is specified, both
#setSortAscending and
#setSortDescending are called with null.
Therefore, no more sorting is available to users for this column.