All Products
Search
Document Center

Tablestore:Sort

Last Updated:May 11, 2024

Sort specifies the presorting method of the search index or the sorting method of the returned results.

Data structure

message Sort {
    repeated Sorter sorter = 1;
}

Parameter

Type

Required

Description

sorter

Sorter

Yes

The sorting configurations. Valid values: FieldSort, GeoDistanceSort, ScoreSort, and PrimaryKeySort. By default, data is sorted based on the primary key.