/**
  * Sorts a list of database objects.
  *
  * @param	array<DatabaseObject>	$objects
  * @param	mixed			$sortBy
  * @param	string			$sortOrder
  * @return	boolean
  */
 public static function sort(&$objects, $sortBy, $sortOrder = 'ASC')
 {
     self::$sortBy = !is_array($sortBy) ? array($sortBy) : $sortBy;
     self::$sortOrder = !is_array($sortOrder) ? array($sortOrder) : $sortOrder;
     return uasort($objects, array('DatabaseObject', 'compareObjects'));
 }