original_string: protected function getListCurrency($count = false)
      {
          $currencies = $this->currency->getList();
  
          $allowed = $this->getAllowedFiltersCurrency();
          $this->filterList($currencies, $allowed, $this->query_filter);
          $this->sortList($currencies, $allowed, $this->query_filter, array('modified' => 'desc'));
  
          if ($count) {
              return count($currencies);
          }
  
          $this->limitList($currencies, $this->data_limit);
          return $currencies;
      }
code: protected function getListCurrency($count = false)
      {
          $currencies = $this->currency->getList();
  
          $allowed = $this->getAllowedFiltersCurrency();
          $this->filterList($currencies, $allowed, $this->query_filter);
          $this->sortList($currencies, $allowed, $this->query_filter, array('modified' => 'desc'));
  
          if ($count) {
              return count($currencies);
          }
  
          $this->limitList($currencies, $this->data_limit);
          return $currencies;
      }
code_tokens: protected function getListCurrency ( $ count = false ) { $ currencies = $ this -> currency -> getList ( ) ; $ allowed = $ this -> getAllowedFiltersCurrency ( ) ; $ this -> filterList ( $ currencies , $ allowed , $ this -> query_filter ) ; $ this -> sortList ( $ currencies , $ allowed , $ this -> query_filter , array ( 'modified' => 'desc' ) ) ; if ( $ count ) { return count ( $ currencies ) ; } $ this -> limitList ( $ currencies , $ this -> data_limit ) ; return $ currencies ; }
docstring: Returns an array of sorted currencies
  @param bool $count
  @return array|int
docstring_tokens: Returns an array of sorted currencies