Don't sort parties twice