I need help with sorting 2D array. I\'ve got array with two rows
[5, 3, 4, 1, 2] [10,20,30,40,50]
and I need to sort it to look like this:
Did you think about merge-sort-alorithm?
http://en.wikipedia.org/wiki/Merge_sort that should be the fastest in that case. (an abstract implementation is available in wiki too)