This would be indeed very useful and also ideal from a sorting performance perspective!
========== Original ==========
From: Andrea Faulds <ajf@ajf.me>
To: PHP internals <internals@lists.php.net>
Date: Mon, 19 Jan 2015 09:28:17 +0100
Subject: [PHP-DEV] [RFC] Combined Comparison (Spaceship) Operator
Good morning,
This is a reboot of Davey Shafik’s RFC (with permission). After recent discussions about sort functions, I was inspired to bring this back up, as I think it would be a useful feature.
The RFC is here: https://wiki.php.net/rfc/combined-comparison-operator
Thanks!
--
Andrea Faulds
http://ajf.me/