ordering of maxes