Declaration
ok, pages = GetSortedData(bool ascending, int pagesize, int minPage = -1, int maxPage = -1)
Parameters
| Parameter Name | Type | Description |
|---|---|---|
| ascending | bool | Specifies whether the data is sorted in ascending order. The value true indicates that the data is sorted in ascending order, while the value false indicates the opposite. |
| pageSize | int | Number of data entries on a single page. |
| minPage | int | Starting page number. If you leave this parameter empty, this method gets and sorts data starting from page 0. 0 is the minimum page number. |
| maxDate | int | Ending page number. If you leave this parameter empty, this method gets and sorts data on all pages. 0 is the minimum page number. |
Return Values
| Response Name | Type | Description |
|---|---|---|
| ok | int | If the value is 0, the operation is successful. The subsequent fields are the obtained value and detailed information. |
| pages | string or DataStorePages | If the operation is successful, the obtained information is returned in pagination mode. Otherwise, an error message is returned. |
Description
Gets all data sets sorted by value from a DataStore.
