I'm not too sure how or if it's even possible.
Tried using table.sort(table) resulting in Unable to cast userdata value error. Tried looking around and nothing made a bit of sense or explained much. Any help would be appreciated!
COMMUNITY QUESTION
[Solved]Sorting an array with objects or strings?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

5 comments
My apologies if this has been covered before. I probably wasn't using the right keywords when searching around
The table library is mainly for arrays.
for strings: table.sort(tabelThatContainsStrings, function(a, b) return a < b end)
Sort objects how so?
Yeah. I didn't think that through, I could just compare the names of the objects and sort that way