Sorting search results by SKU

lovepreetsharma
Shopify Expert
4 1 4

Hello, 

We are using Warehouse theme, we want if someone will search then the results page should show the results but with Sort by SKU. so the results should show products like this.

Example :
1001 - 1002 - 1007
1015 - 10017 - 1020

I also have try to assign sort by sku outside of loop, but it didn't work like expected.

{% assign sorted = search.results | sort: 'sku' %}

is there any workaround for this? please help.

0 Likes
SAB2019
New Member
1 0 0

WOW, so noone has responded to you since June!

I have the same issue and was hoping to find an answer here.

 

 

0 Likes