Created
January 20, 2014 04:32
-
-
Save YuriDan/8514899 to your computer and use it in GitHub Desktop.
Сортировка многомерного массива по значению вложенных элементов
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
<?function cmp_props($a, $b){ | |
if ($a['SORT'] == $b['SORT']) { return 0; } | |
return ($a['SORT'] < $b['SORT']) ? -1 : 1; | |
} | |
uasort($arProps, "cmp_props");?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment