SortMode controls which value is used for sorting when a field contains multiple values. Choose from the minimum, maximum, or average of the field values.
Usage notes
When a field has multiple values, Tablestore selects a representative value to determine sort order. The default depends on the sort direction:
Ascending order: defaults to
SORT_MODE_MIN(minimum value).Descending order: defaults to
SORT_MODE_MAX(maximum value).
Enumeration values
SORT_MODE_MIN: use the minimum field value for sorting.SORT_MODE_MAX: use the maximum field value for sorting.SORT_MODE_AVG: use the average field value for sorting.
enum SortMode {
SORT_MODE_MIN = 0;
SORT_MODE_MAX = 1;
SORT_MODE_AVG = 2;
}