GetSortedAsync
This is a yielding function. When called, it will pause the Lua thread that called the function until a result is ready to be returned, without interrupting other scripts.
For thread safety, this property is not safe to read in an unsynchronized thread.
Returns a DataStorePages object. The sort order is determined by ascending, the length of each page by pageSize, and minValue/maxValue are optional parameters which filter the results.
If this function throws an error, the Articles/Datastore Errors|error message will describe the problem.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
|
|
A boolean indicating whether the returned data pages are in ascending order. |
||
|
|
The length of each page. |
||
|
|
Optional parameter. If set, data pages with a value less than than minValue will be excluded. |
||
|
|
Optional parameter. If set, data pages with a value greater than maxValue will be excluded. |
Returns
| Return Type | Summary |
|---|---|
|
A sorted |