compact select" name="sort">
              {%- for g in types -%}
                <option value="{{ g }}"{% if sort == g %} selected{% endif %}>{{ _('problem.stats.sort.'+g) }}</option>
              {%- endfor -%}
            </select>
            <select class="inline compact select" name="direction">
              <option value="1"{% if direction == 1 %} selected{% endif %}>ASC</option>
              <option value="-1"{% if direction == -1 %} selected{% endif %}>DESC</option>
            </select>
      