no need to sort twice