fuel/fuel/core/classes/arr.php
public static function multisort($array, $conditions, $ignore_case = false)
	{
		$temp = array();
		$keys = array_keys($conditions);

		foreach($keys as $key)
		{
			$temp[$key] = static::pluck($array, $key, true);
			is_array($conditions[$key]) or $conditions[$key] = array($conditions[$key]);
		}

		$args = array();
		foreach ($keys as $key)
		{
			$args[] = $ignore_case ? array_map('strtolower', $temp[$key]) : $temp[$key];
			foreach($conditions[$key] as $flag)
			{
				$args[] = $flag;
			}
		}

		$args[] = &$array;

		call_fuel_func_array('array_multisort', $args);
		return $array;
	}
public static function multisort($array, $conditions, $ignore_case = false)
	{
		$temp = array();
		$keys = array_keys($conditions);

		foreach($keys as $key)
		{
			$temp[$key] = static::pluck($array, $key, true);
			is_array($conditions[$key]) or $conditions[$key] = array($conditions[$key]);
		}

		$args = array();
		foreach ($keys as $key)
		{
			$args[] = $ignore_case ? array_map('strtolower', $temp[$key]) : $temp[$key];
			foreach($conditions[$key] as $flag)
			{
				$args[] = $flag;
			}
		}

		$args[] = &$array;

		call_fuel_func_array('array_multisort', $args);
		return $array;
	}
public static function multisort ( $ array , $ conditions , $ ignore_case = false ) { $ temp = array ( ) ; $ keys = array_keys ( $ conditions ) ; foreach ( $ keys as $ key ) { $ temp [ $ key ] = static :: pluck ( $ array , $ key , true ) ; is_array ( $ conditions [ $ key ] ) or $ conditions [ $ key ] = array ( $ conditions [ $ key ] ) ; } $ args = array ( ) ; foreach ( $ keys as $ key ) { $ args [ ] = $ ignore_case ? array_map ( 'strtolower' , $ temp [ $ key ] ) : $ temp [ $ key ] ; foreach ( $ conditions [ $ key ] as $ flag ) { $ args [ ] = $ flag ; } } $ args [ ] = & $ array ; call_fuel_func_array ( 'array_multisort' , $ args ) ; return $ array ; }
Sorts an array on multitiple values, with deep sorting support.

@param   array  $array        collection of arrays/objects to sort
@param   array  $conditions   sorting conditions
@param   bool   @ignore_case  wether to sort case insensitive
Sorts an array on multitiple values with deep sorting support .