Used min/max, no need to sort now.