0

I need to sort a column of a 2D array. What is the most efficient way to do so? Can I copy the entire column of 2D array to a new 1D array then sort it from there. I need it to be fast.

1 Answers1

0

Just use normal QuickSort and give it another parameter for column index.

input[i, columnIndex] = temp;
Tzah Mama
  • 1,547
  • 1
  • 13
  • 25