Quote:
Originally Posted by kingcj
This worked for me, but I'm unsure why the .blah was needed when assigning. I'm not sure if the other is for GUIs or not, but thanks for the help!
|
That's the variable sortbyvalue grabs the value from to sort it by, you could use rabblerabble if you wanted to.
I.e:
PHP Code:
temp.xs = {1,6,7,3,2,1,5,23,41,75,2347,51,123};
for (temp.i = 0; temp.i < temp.xs.size(); temp.i++) {
temp.xs[temp.i].rabblerabble = temp.xs[temp.i];
}
temp.xs.sortbyvalue("rabblerabble", "float", true);