Search X / Search Results / Sort Default

Sort Default

Set the default sort for the products or collections scope (on the /search page only).

Products Scope

SX Type Field Allowed Values Description
results sort 'latest' (default), 'popular', 'price-low', 'price-high Default sort for scope products results in the /search page.

Collections Scope

SX Type Field Allowed Values Description
results sort 'latest' (default), 'popular' Default sort for scope collection results in the /search page.


 

~CE

<script>
  window.sx_results = {
    options: {
      sort: 'popular'
      }
    }
  }
</script>
HTML