I'm trying to sort an array of high scores. However the sort array function sorts by the first number. So "900" is considered higher than "3,000,000". Is there another sorting function I can use?
You can do your own sort with events. For example here is a bubble sort:
https://www.dropbox.com/s/p3qr558so9fzg ... .capx?dl=1
"3,000,000" is string..not a number...
Develop games in your browser. Powerful, performant & highly capable.
korbaach Yeah, I was just using commas for emphasis on the number being bigger.
R0J0hound Thanks! I'll give that capx a look over.