Sorting a 4 dimensional array
Posted on 1998-07-06
My program reads a text file with data in 4 columns.
I need to sort the file based on the data in the first column. My program already uses a listbox for other things and I'd prefer to use another listbox for this matter too.
I load all the data into a 4 dimensional array and I tried putting the data into an indexed listbox with the sort set to True. The problem is that it sorts all 4 dimensions and not only the first one, meaning that the data is mixed up.
Is there an easy way of sorting this array?
Any help is appreciated.