Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

[Solved]Sorting an array with objects or strings?

Asked by
Audiimo 105
5 years ago
Edited 5 years ago

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!

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

Answer this question