/** * Sort an array of objects by property name given in parameter * * @param array &$objects The objects array to sort * @param string $prop The property name * @param string $propAlt The alternative property name * * @return bool Sucess or Failure */ static function ksortByProp(&$objects, $prop, $propAlt = null) { usort($objects, CMbArray::objectSorter($prop, $propAlt)); }