Sorting two variables in an array of objects

Posted by Faken on Stack Overflow See other posts from Stack Overflow or by Faken
Published on 2010-06-14T20:01:12Z Indexed on 2010/06/14 20:02 UTC
Read the original article Hit count: 176

Filed under:
|

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,

© Stack Overflow or respective owner

Related posts about visual-c++

Related posts about sorting