<div class="sports-menu" id="sports-menu">
  <div class="container-size no-padding">
    <ul>
      <li class="<?php isIncludingURL('Sports/BTI') && print 'active is-favourite'; ?>" data-id="33" data-toggle="tooltip">
        <a href="/tr/Sports/BTI?isLive=False" data-sport-id="33">
          <img src="/Content/themes/v1/img/bettingproviders/EveryMatrix.png" />
        </a>
      </li>
      <li class="<?php isIncludingURL('Sports/BcBetting') && print 'active is-favourite'; ?>" data-id="22" data-toggle="tooltip">
        <a href="/tr/Sports/BcBetting" data-sport-id="22">
          <img src="/Content/themes/v1/img/bettingproviders/BCBetting.png" />
        </a>
      </li>
      <li class="<?php isIncludingURL('Sports/Altenar') && print 'active is-favourite'; ?>" data-id="44" data-toggle="tooltip">
        <a href="/tr/Sports/Altenar" data-sport-id="44">
          <img src="/Content/themes/v1/img/bettingproviders/OneBet.png" />
        </a>
      </li>
      <li class="<?php isIncludingURL('Sports/DelaSportBetting') && print 'active is-favourite'; ?>" data-id="121" data-toggle="tooltip">
        <a href="/tr/Sports/DelaSportBetting" data-sport-id="121">
          <img src="/Content/themes/v1/img/bettingproviders/DelaSport.png" />
        </a>
      </li>
      <li class="<?php isIncludingURL('Sports/StartPinnacleBetting') && print 'active is-favourite'; ?>" data-id="55" data-toggle="tooltip">
        <a href="/tr/Sports/StartPinnacleBetting" data-sport-id="55">
          <img src="/Content/themes/v1/img/bettingproviders/Pinnacle.png" />
        </a>
      </li>
      <li class="<?php isIncludingURL('Sports/StartOneXBetBetting') && print 'active is-favourite'; ?>" data-id="110" data-toggle="tooltip">
        <a href="/tr/Sports/StartOneXBetBetting?isLive=False" data-sport-id="110">
          <img src="/Content/themes/v1/img/bettingproviders/seka-betb2b.jpg" />
        </a>
      </li>
      <li class="<?php isIncludingURL('Sports/Transfer') && print 'active is-favourite'; ?>" data-id="143" data-toggle="tooltip">
        <a href="/tr/Banking/Transfer" data-sport-id="143">
          <img src="/Content/themes/v1/img/bettingproviders/Saraybet.png" />
        </a>
      </li>
    </ul>
  </div>
</div>
<script>
  // :)
  document.addEventListener("DOMContentLoaded", function() {
    var menu = document.getElementById('sports-menu').querySelector('ul');
    var items = menu.children;
    for (var i = 0; i < items.length; i++) {
        if (items[i].classList.contains('active')) {
            menu.insertBefore(items[i], items[0]);
            break;
        }
    }
})
</script>