protected function _sortResult(array &$result, $sort = 'asort')
    {
        // Sorting
        switch ($sort) {
            case 'asort':
                asort($result);
                break;

            case 'ksort':
                ksort($result);
                break;

            case 'natsort':
                natsort($result);
                break;

            default:
                $sort($result);
        }
    }
protected function _sortResult(array &$result, $sort = 'asort')
    {
        // Sorting
        switch ($sort) {
            case 'asort':
                asort($result);
                break;

            case 'ksort':
                ksort($result);
                break;

            case 'natsort':
                natsort($result);
                break;

            default:
                $sort($result);
        }
    }
protected function _sortResult ( array & $ result , $ sort = 'asort' ) { // Sorting switch ( $ sort ) { case 'asort' : asort ( $ result ) ; break ; case 'ksort' : ksort ( $ result ) ; break ; case 'natsort' : natsort ( $ result ) ; break ; default : $ sort ( $ result ) ; } }
Sort the array using the specified sort function

@param array $result
@param strng $sort
Sort the array using the specified sort function