fix php sorting