Sorting two variables in an array of objects
- by Faken
I have an array of xy coordinates that i want to sort by ascending y, and if there are duplicates, ascending x. Is this possible with the standard sort() function? If so, how would i go about doing it?
Thanks,