{"section":"known-issues","requestedLocale":"en","requestedSlug":"orderbybestdiscount-returns-the-wrong-sorting-order","locale":"en","slug":"orderbybestdiscount-returns-the-wrong-sorting-order","path":"docs/en/known-issues/Marketing & Merchandising/orderbybestdiscount-returns-the-wrong-sorting-order.md","branch":"main","content":"## Summary\n\nThe `OrderByBestDiscount` sorting is affected by the lowest [list price](https://help.vtex.com/en/tracks/prices-101--6f8pwCns3PJHqMvQSugNfP/3XcXp0r5WrJvogB8KIX4Kx#list-price) and [base price](https://help.vtex.com/en/tracks/prices-101--6f8pwCns3PJHqMvQSugNfP/3XcXp0r5WrJvogB8KIX4Kx) among all available trade policies. \n\nFor more sorting-related errors, see [this documentation](https://help.vtex.com/pt/known-issues/problema-ordenacao-produtos-vitrine--7JlXcIcicgQwkOkCuce4Ow#).\n\n## Simulation\n\n1. Configure at least two [trade policies listed](https://help.vtex.com/en/tutorial/creating-a-sales-policy--563tbcL0TYKEKeOY4IAgAE) in your store.\n2. Create a [base price](https://help.vtex.com/en/tracks/prices-101--6f8pwCns3PJHqMvQSugNfP/3XcXp0r5WrJvogB8KIX4Kx) for a SKU.\n3. Create a [list price](https://help.vtex.com/en/tracks/prices-101--6f8pwCns3PJHqMvQSugNfP/3XcXp0r5WrJvogB8KIX4Kx#list-price) for the same SKU.\n4. Configure the `<vtex.cmc:searchResult/>` control on the product page.\n\n## Workaround\n\nThere is no workaround in the Portal. However, you can add [VTEX Intelligent Search](https://help.vtex.com/tracks/vtex-intelligent-search--19wrbB7nEQcmwzDPl1l4Cb/3qgT47zY08biLP3d5os3DG#) to your store."}