src/Kisma/Core/Utility/Scalar.php
public static function array_multisort_column( &$sourceArray, $column, $sortDirection = SORT_ASC )
    {
        $_sortColumn = array();

        foreach ( $sourceArray as $_key => $_row )
        {
            $_sortColumn[$_key] = ( isset( $_row[$column] ) ? $_row[$column] : null );
        }

        return \array_multisort( $_sortColumn, $sortDirection, $sourceArray );
    }
public static function array_multisort_column( &$sourceArray, $column, $sortDirection = SORT_ASC )
    {
        $_sortColumn = array();

        foreach ( $sourceArray as $_key => $_row )
        {
            $_sortColumn[$_key] = ( isset( $_row[$column] ) ? $_row[$column] : null );
        }

        return \array_multisort( $_sortColumn, $sortDirection, $sourceArray );
    }
public static function array_multisort_column ( & $ sourceArray , $ column , $ sortDirection = SORT_ASC ) { $ _sortColumn = array ( ) ; foreach ( $ sourceArray as $ _key => $ _row ) { $ _sortColumn [ $ _key ] = ( isset ( $ _row [ $ column ] ) ? $ _row [ $ column ] : null ) ; } return \ array_multisort ( $ _sortColumn , $ sortDirection , $ sourceArray ) ; }
Sorts an array by a single column

@param array  $sourceArray
@param string $column
@param int    $sortDirection

@return bool
Sorts an array by a single column