API:Class/OrderedDataStore/GetSortedAsync

GetSortedAsync

YieldFunction of ExplorerImageIndex69.pngOrderedDataStore
DataStorePages GetSortedAsync (
    bool ascending,
    int pagesize,
    int minValue = nil,
    int maxValue = nil
)
Parameters:
  1. ascending
  2. pagesize
    • Type: int
    • Required
  3. minValue
    • Type: int
    • Defaults to: nil
  4. maxValue
    • Type: int
    • Defaults to: nil

Returns: DataStorePages
Description: Returns a DataStorePages object. The length of each page is determined by pageSize, and the order is determined by isAscending. minValue and maxValue are optional parameters which will filter the result. See this article for a good explanation of using this. You can not use this too often, as there is a limit on the usage of this method.


If this function throws an error, the error message will describe the problem. A full list of DataStore errors can be seen here.

Notes

The maximum pagesize is 100.


See Also