This file contains hidden or 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 | |
/** | |
* Sort a multi-domensional array of objects by key value | |
* Usage: usort($array, arrSortObjsByKey('VALUE_TO_SORT_BY')); | |
* Expects an array of objects. | |
* | |
* @param String $key The name of the parameter to sort by | |
* @param String $order the sort order | |
* @return A function to compare using usort | |
*/ |