I need to sort a move list for an abstract game. The move list is an array of type int. Each move requires nine elements in the array one of which is the score value that I wish to sort on.
I see that Java has a java.util.Arrays.sort(int[]) method but I don’t see how this could be useful due to the move list multiple element structure.
I don’t want to write a bubble sort because sort speed is critical.
Does java have any fast sort functions that can serve my purpose? i.e. Be used to sort multi-element records in an int array using one element as the sort value?