Using a more elegant sort