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?
Develop games in your browser. Powerful, performant & highly capable.
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...
korbaach Yeah, I was just using commas for emphasis on the number being bigger.
R0J0hound Thanks! I'll give that capx a look over.