I'm trying to sort the following Array:
int hitlist[][] = new int [17][2];
Sorting information is always in hitlist[i][0] and it's numeric, but I can't find the correct way for Arrays.sort.
The input looks like:
[0, 0]
[4, 0]
[3, 1]
[4, 2]
[4, 4]
[5, 6]
[4, 7]
[4, 8]
[1, 9]
[4, 11]
[4, 12]
[2, 13]
[4, 14]
[4, 15]
[0, 0]
[0, 0]
[0, 0]
and now I want it to be sorted like:
[1, 9]
[2, 13]
[3, 1]
[4, 0]
[4, 2]
[4, 4]
[4, 7]
[4, 8]
[4, 11]
[4, 12]
[4, 14]
[4, 15]