Last active
April 23, 2016 08:17
-
-
Save s2ar/706dc38c98114491a5eff3ab7fcc35e8 to your computer and use it in GitHub Desktop.
php. сортировка массива по текстовому полю
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(!function_exists('cmp')){ | |
function cmp($a, $b) { | |
return strcasecmp($a['short_name'], $b['short_name']); | |
} | |
} | |
uasort($arResult['OFFER_LEAF'], 'cmp'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment