sort the max.