Minor edit to sort.