<?xml version="1.0"?>
<t name="Sort-by Template" t-name="website_sale.sort">
        <div t-attf-class="o_sortby_dropdown dropdown dropdown_sorty_by {{_classes}}">
            <t t-set="_current_sort" t-value="isSortingBy and isSortingBy[0][0] or website.shop_default_sort"/>
            <t t-set="_sort_label">Sort By</t>
            <a role="button" href="#" t-attf-class="dropdown-toggle btn px-2" data-bs-toggle="dropdown">
                <span class="d-md-none"><t t-out="_sort_label"/></span>
                <small class="d-none d-md-inline opacity-75"><t t-out="_sort_label"/>:</small>
                <span class="d-none d-md-inline">
                    <t t-if="isSortingBy" t-out="isSortingBy[0][1]"/>
                    <span t-else="" t-field="website.shop_default_sort"/>
                </span>
                <i t-if="_icon_classes" t-attf-class="fa fa-sort {{_icon_classes}}" role="img"/>
            </a>
            <div class="dropdown-menu dropdown-menu-end" role="menu">
                <t t-foreach="website_sale_sortable" t-as="sortby">
                    <t t-set="_is_active" t-value="_current_sort == sortby[0]"/>
                    <a role="menuitem" rel="noindex,nofollow" t-att-href="keep(order=sortby[0])" t-attf-class="dropdown-item {{_is_active and 'active'}}">
                        <span t-out="sortby[1]"/>
                    </a>
                </t>
            </div>
        </div>
    </t>

    