Array.sort() doesn't work for string arrays
-
@d-healey said in Array.sort() doesn't work for string arrays:
@Lindon I made a video about sorting arrays, might be of help
oh I can sort array no problem - but it would be nice if this was available..
-
@Lindon Hmmm that's very strange because I am using currently everywhere in the current project and it works like a charm, at least for strings..
Although for objects, I've made a confusion and should've been more precise... It is not sorting json objects, but object reference names like
Object 0x65de8a18
that are treated as string, which is of no use...I make my own functions for sorting json, and it's just a real pain every single time... I wish there was a straight solution for this task...
-
@ustk can you give me an example of your usage?
-
var stringArray = ["f", "a", "z"]; stringArray.sortNatural(); // ["a", "f", "z"]
-
@ustk hmm, yeah I get hanging update errors...dont worry about it I will continue with my home grown sort..
-
@Lindon said in Array.sort() doesn't work for string arrays:
@ustk hmm, yeah I get hanging update errors...
what do you mean?
-
@ustk oh sorry wrong terms : here:
MELODICSO1:! dangling listener
-
@Lindon You just buried me a bit more
-
@ustk said in Array.sort() doesn't work for string arrays:
@Lindon You just buried me a bit more
yeah I think its just not cleaning up after itself correctly..
-
@Lindon said in Array.sort() doesn't work for string arrays:
@ustk oh sorry wrong terms : here:
MELODICSO1:! dangling listener
What are you drinking... :p
-
@d-healey - the coolaid....
-
What is the Meaning of This?
dangling listener
It happens once I Check the plugin Parameters Names using Tools / Validate Plugin Parameters!