OrderedDataStore:GetSortedAsync incomplete documentation

GetSortedAsync has 4 parameters:
isAscending, pageSize, minValue and maxValue.

Each parameter is well documented, except pageSize. Its current description is:


When you execute the following code:

local DataStoreService = game:GetService("DataStoreService")
local PointsOrdered = DataStoreService:GetOrderedDataStore("Points")

local DataStorePages = PointsOrdered:GetSortedAsync(false, 200)

It will throw an error:

PageSize must be within a predefined range

This is because the pageSize parameter is over 100. The problem here is that this isn’t written anywhere in the documentation, making developers need to experiment to see what the max pageSize is.

I suggest changing the pageSize description to something along the lines of:

This topic was automatically closed after 1 minute. New replies are no longer allowed.