I have an array that has information grouped in multiples of 3. In other words, array[0], array[1], and array[2] should be associated with each other just like array[3]. array[4], and array[5] should be associated with each other.
Example:
array[0] = Florida
array[1] = 95
array[2] = 52
array[3] = California
array[4] = 92
array[5] = 43
Is it possible to sort this array, or put this array in another array and sort that array, by only the third element (array[2] and array[5], etc.) and maintain the associations with the other 2 elements?
Any help would be appreciated.