Sort the proper array.