Hello Good day to all.
I have a problem with the sorting. After sorting, and view the arrays I get a jumbled data array. How can I return it to the normal arrangement. I want to use sort for viewing only.
Cheers,
Karl
You will need another array to sort, so that you don't change the original array. The other array can be an array of char* or int indices into the original array if you want to make things simple.
You'll need to first initialize the proxy array so that each char* or index points to its unsorted counterpart in the original array. Then sort the proxy array. Print. Delete.