No need to sort twice