<?php $list = $this->params->getSortList(); if (!empty($list)): ?>
  <form class="search-sort" action="<?=$this->currentPath()?>" method="get" name="sort">
    <?=$this->results->getUrlQuery()->asHiddenFields(array('sort' => '/.*/'));?>

    <select id="sort_options_1" name="sort" class="jumpMenu form-control">
      <?php foreach ($list as $sortType => $sortData): ?>
        <option value="<?=$this->escapeHtmlAttr($sortType)?>"<?=$sortData['selected']?' selected="selected"':''?>><?=$this->transEsc($sortData['desc'])?></option>
      <?php endforeach; ?>
    </select>

    <label for="sort_options_1"><?=$this->transEsc('Sort')?></label>
    <noscript><input type="submit" class="btn btn-default" value="<?=$this->transEsc("Set")?>" /></noscript>
  </form>
<?php endif; ?>
