Peter sort version