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!

5 comments

0

My apologies if this has been covered before. I probably wasn't using the right keywords when searching around

0

The table library is mainly for arrays.

0

for strings: table.sort(tabelThatContainsStrings, function(a, b) return a < b end)

0

Sort objects how so?

0

Yeah. I didn't think that through, I could just compare the names of the objects and sort that way