magento2 – Magento 2.2 – Products sorted by URL number

I am experiencing a category page URL problem when I try to sort products by price (low to high) or (high to low). I use the code below to add price options (descending).

<option value = ""isOrderCurrent (& # 39; price & # 39;) && $ block-> getCurrentDirection () == & # 39; asc & # 39;):?> selected = "selected">
                escapeHtml (__ ("Price - Low to High"))?>
                

                <option value = ""isOrderCurrent (& # 39; price & # 39;) && $ block-> getCurrentDirection () == & # 39; desc & # 39;):?> selected = "selected">
                escapeHtml (__ ("Price - highest to lowest"))?>
                

                    
                    
                    
                    
                    <option value = ""
                isOrderCurrent ($ _ key)):?>
selected = "selected"
                
                >
                escapeHtml (__ ($ _ order))?>
            
        

How to solve this problem.Need help …
Category page URL

    https://example.com/boys.html?product_list_order=price%26product_list_dir%3Ddesc