source/Application/Controller/Admin/LanguageList.php
protected function _sortLanguagesCallback($oLang1, $oLang2)
    {
        $sSortParam = $this->_sDefSortField;
        $sVal1 = is_string($oLang1->$sSortParam) ? strtolower($oLang1->$sSortParam) : $oLang1->$sSortParam;
        $sVal2 = is_string($oLang2->$sSortParam) ? strtolower($oLang2->$sSortParam) : $oLang2->$sSortParam;

        if ($this->_sDefSortOrder == 'asc') {
            return ($sVal1 < $sVal2) ? -1 : 1;
        } else {
            return ($sVal1 > $sVal2) ? -1 : 1;
        }
    }
protected function _sortLanguagesCallback($oLang1, $oLang2)
    {
        $sSortParam = $this->_sDefSortField;
        $sVal1 = is_string($oLang1->$sSortParam) ? strtolower($oLang1->$sSortParam) : $oLang1->$sSortParam;
        $sVal2 = is_string($oLang2->$sSortParam) ? strtolower($oLang2->$sSortParam) : $oLang2->$sSortParam;

        if ($this->_sDefSortOrder == 'asc') {
            return ($sVal1 < $sVal2) ? -1 : 1;
        } else {
            return ($sVal1 > $sVal2) ? -1 : 1;
        }
    }
protected function _sortLanguagesCallback ( $ oLang1 , $ oLang2 ) { $ sSortParam = $ this -> _sDefSortField ; $ sVal1 = is_string ( $ oLang1 -> $ sSortParam ) ? strtolower ( $ oLang1 -> $ sSortParam ) : $ oLang1 -> $ sSortParam ; $ sVal2 = is_string ( $ oLang2 -> $ sSortParam ) ? strtolower ( $ oLang2 -> $ sSortParam ) : $ oLang2 -> $ sSortParam ; if ( $ this -> _sDefSortOrder == 'asc' ) { return ( $ sVal1 < $ sVal2 ) ? - 1 : 1 ; } else { return ( $ sVal1 > $ sVal2 ) ? - 1 : 1 ; } }
Callback function for sorting languages objects. Sorts array according
'sort' parameter

@param object $oLang1 language object
@param object $oLang2 language object

@return bool
Callback function for sorting languages objects . Sorts array according sort parameter