Hi,
https://bugs.php.net/patch-display.php?bug_id=55158&patch=trunk-multisort-natural&revision=latest
adds the flags SORT_NATURAL
and SORT_CASE to array_multisort. The
SORT_NATURAL
flag is well explained by the request the patch is
attached to: https://bugs.php.net/bug.php?id=55158
SORT_CASE can be combined with SORT_STRING
or SORT_NATURAL
for a
case-insensitive sort.
I think it's a useful feature with no BC issues, and I'd appreciate
any feedback.
Regards,
Arpad
https://bugs.php.net/patch-display.php?bug_id=55158&patch=trunk-multisort-natural&revision=latest
adds the flagsSORT_NATURAL
and SORT_CASE to array_multisort. The
SORT_NATURAL
flag is well explained by the request the patch is
attached to: https://bugs.php.net/bug.php?id=55158SORT_CASE can be combined with
SORT_STRING
orSORT_NATURAL
for a
case-insensitive sort.I think it's a useful feature with no BC issues, and I'd appreciate
any feedback.
Looks good to me!
Derick
--
http://derickrethans.nl | http://xdebug.org
Like Xdebug? Consider a donation: http://xdebug.org/donate.php
twitter: @derickr and @xdebug