table.sort documentation mistake on second parameter comp

Issue Type: Display
Impact: Low
Frequency: Constantly
Date First Experienced:
Date Last Experienced: 2021-02-03 00:02:00 (-05:00)

Reproduction Steps:
In Roblox studio, insert a script. Open the text editor and type “table.so” . Auto completions should appear giving you some nice documentation on this function.
image

Expected Behavior:
You would expect the documentation to state that the second parameter to be of type function.

Actual Behavior:
If you take a closer look at what the documentation says, you might notice there is a simple mistake on what the variable type is for the second parameter. It’s recorded to be a number then goes on to state that comp should be a function. Number should be changed to function.
image

Workaround:

5 Likes

Thanks for the report! We’ve filed a ticket to our internal database and we’ll follow up when we have an update for you.

Please note that filling a bug report does not guarantee that it will be fixed once triaged.

4 Likes