Hi,
for this kind of sorting, here's what I do.
I create a hashtable for each column, where the key is the ID value ( as a string)
then on the column you want to sort, extract the values from the hashtable, into am arraylist, sort that, and then you can look up the key for that value, and with that key, get all the rest of the row.
Bye,
Jean