Search Results order

Topic summary

A user wants search results to display newest items first instead of appearing in what they perceive as random order.

Current Behavior:

  • Search results can be manually sorted A-Z or Z-A by customers
  • User believes results appear randomly by default

Solution Provided:

  • Default search behavior should already show newest to oldest
  • If not working as expected, add a query parameter to the search URL: sort_by=created-descending
  • Example: shop-URL/search?q=watch&sort_by=created-descending

Implementation Notes:

  • Requires theme code adjustment to append the query string
  • Only works with default Shopify search page
  • If using a third-party search app, contact that app’s support instead

The user thanked the responder, suggesting the solution was helpful.

Summarized with AI on November 3. AI used: claude-sonnet-4-5-20250929.

Hey!

is there a way i can show the search results by newest first? Right now they appear randomly. Clients can sort them A-Z or Z-A but I’d like the search results to always display the newest items first.

Thanks a lot

SM

Hello @shireenm ,

Not sure how search results show randomly for you because its default behaviour is New to Old.

btw still you feel its not working as you need please add a query string in your search URL after query string
e.g.
/search?q=watch&sort_by=created-descending

complete URL will be
shop-URL/search?q=watch&sort_by=created-descending

Note: To append a new query string you need to adjust the theme code and make sure your search page is the default of the theme not with an app.
If you are using an app for search then it’s better to ask for their support.

Regards
Guleria

1 Like

@Guleria

Thank you