Sorting a 2 dimensional array on multiple columns
Posted
by Anon
on Stack Overflow
See other posts from Stack Overflow
or by Anon
Published on 2010-06-15T00:43:05Z
Indexed on
2010/06/15
0:52 UTC
Read the original article
Hit count: 214
I need to sort a 2 dimensional array of doubles on multiple columns using either C or C++. Could someone point me to the algorithm that I should use or an existing library (perhaps boost?) that has this functionality?
I have a feeling that writing a recursive function may be the way to go but I am too lazy to write out the algorithm or implement it myself if it has been done elsewhere. :-)
Thanks
© Stack Overflow or respective owner