Issue #3161223 by andypost, longwave, Hardik_Patel_12, alexpott, jungle, dww: Use PHP 7.0 "spaceship" operator for user sort functions where possible