4 Answers
4

You can define a Comparator for the first column using setComparator method. Then, in your compare method in the Comparator, return -1 if the first argument is 1, 1 if second argument is 1 and 0 otherwise.

I tried that -- this method would sort on the first column correctly, but if you use this same Comparator for the second column, it would produce something like: (1,3), (1,5), (2,1), (2, 3), (2, 4), (3,1) breaking up the 1's in the second column
–
lynxoidMar 9 '12 at 16:25