public enum SortOrder
Sort order of variable values.
Enum Constant and Description |
---|
ALPHABETICAL_ASC
Values will be sorted in alphabetical ascending order.
|
ALPHABETICAL_CASE_INSENSITIVE_ASC
Values will be sorted in alphabetical ascending order.
|
ALPHABETICAL_CASE_INSENSITIVE_DESC
Values will be sorted in alphabetical descending order.
|
ALPHABETICAL_DESC
Values will be sorted in alphabetical descending order.
|
DISABLED
No sorting will be applied to variable values. Order of values determined by query.
|
NUMERICAL_ASC
Values will be sorted in numerical ascending order.
|
NUMERICAL_DESC
Values will be sorted in numerical ascending order.
|
Modifier and Type | Method and Description |
---|---|
int |
getCode() |
public static SortOrder DISABLED
No sorting will be applied to variable values. Order of values determined by query.
public static SortOrder ALPHABETICAL_ASC
Values will be sorted in alphabetical ascending order.
For example, array ["1", "10", "20", "100"]
will be sorted as ["1", "10", "100", "20"]
.
Note that this method is case sensitive so array ["ab", "Ab"]
will be sorted as ["Ab", "ab"]
.
public static SortOrder ALPHABETICAL_DESC
Values will be sorted in alphabetical descending order.
For example, array ["1", "10", "20", "100"]
will be sorted as ["20", "100", "10", "1"]
.
Note that this method is case sensitive so array ["ab", "Ab"]
will be sorted as ["ab", "Ab"]
.
public static SortOrder NUMERICAL_ASC
Values will be sorted in numerical ascending order.
For example, array ["1", "10", "20", "100"]
will be sorted as ["1", "10", "20", "100"]
.
public static SortOrder NUMERICAL_DESC
Values will be sorted in numerical ascending order.
For example, array ["1", "10", "20", "100"]
will be sorted as ["100", "20", "10", "1"]
.
public static SortOrder ALPHABETICAL_CASE_INSENSITIVE_ASC
Values will be sorted in alphabetical ascending order.
For example, array ["1", "10", "20", "100"]
will be sorted as ["1", "10", "100", "20"]
.
Note that this method is case insensitive so array ["ab", "Ab"]
will be sorted as ["ab", "Ab"]
.
public static SortOrder ALPHABETICAL_CASE_INSENSITIVE_DESC
Values will be sorted in alphabetical descending order.
For example, array ["1", "10", "20", "100"]
will be sorted as ["20", "100", "10", "1"]
.
Note that this method is case insensitive so array ["ab", "Ab"]
will be sorted as ["ab", "Ab"]
.