source/Application/Controller/Admin/LanguageMain.php
protected function _sortLangArraysByBaseId()
    {
        $aUrls = [];
        $aSslUrls = [];
        $aLanguages = [];

        uasort($this->_aLangData['params'], [$this, '_sortLangParamsByBaseIdCallback']);

        foreach ($this->_aLangData['params'] as $sAbbr => $aParams) {
            $iId = (int) $aParams['baseId'];
            $aUrls[$iId] = $this->_aLangData['urls'][$iId];
            $aSslUrls[$iId] = $this->_aLangData['sslUrls'][$iId];
            $aLanguages[$sAbbr] = $this->_aLangData['lang'][$sAbbr];
        }

        $this->_aLangData['lang'] = $aLanguages;
        $this->_aLangData['urls'] = $aUrls;
        $this->_aLangData['sslUrls'] = $aSslUrls;
    }
protected function _sortLangArraysByBaseId()
    {
        $aUrls = [];
        $aSslUrls = [];
        $aLanguages = [];

        uasort($this->_aLangData['params'], [$this, '_sortLangParamsByBaseIdCallback']);

        foreach ($this->_aLangData['params'] as $sAbbr => $aParams) {
            $iId = (int) $aParams['baseId'];
            $aUrls[$iId] = $this->_aLangData['urls'][$iId];
            $aSslUrls[$iId] = $this->_aLangData['sslUrls'][$iId];
            $aLanguages[$sAbbr] = $this->_aLangData['lang'][$sAbbr];
        }

        $this->_aLangData['lang'] = $aLanguages;
        $this->_aLangData['urls'] = $aUrls;
        $this->_aLangData['sslUrls'] = $aSslUrls;
    }
protected function _sortLangArraysByBaseId ( ) { $ aUrls = [ ] ; $ aSslUrls = [ ] ; $ aLanguages = [ ] ; uasort ( $ this -> _aLangData [ 'params' ] , [ $ this , '_sortLangParamsByBaseIdCallback' ] ) ; foreach ( $ this -> _aLangData [ 'params' ] as $ sAbbr => $ aParams ) { $ iId = ( int ) $ aParams [ 'baseId' ] ; $ aUrls [ $ iId ] = $ this -> _aLangData [ 'urls' ] [ $ iId ] ; $ aSslUrls [ $ iId ] = $ this -> _aLangData [ 'sslUrls' ] [ $ iId ] ; $ aLanguages [ $ sAbbr ] = $ this -> _aLangData [ 'lang' ] [ $ sAbbr ] ; } $ this -> _aLangData [ 'lang' ] = $ aLanguages ; $ this -> _aLangData [ 'urls' ] = $ aUrls ; $ this -> _aLangData [ 'sslUrls' ] = $ aSslUrls ; }
Sort languages, languages parameters, urls, ssl urls arrays according
base land ID
Sort languages languages parameters urls ssl urls arrays according base land ID