How to Sort Items in Cart in alphabetical order

Rachel_Hui
New Member
1 0 0

Hi,

How do I sort the items in the Cart in alphabetical order instead of the order that they are added to the Cart?

Will appreciate help on this.

Thanks in advance.

0 Likes
ThomasBorowski
Shopify Expert
540 24 121

You will need to edit the code in the cart.liquid template. If you're not familiar with the HTML/CSS theme editor, I would strongly recommend you hire an expert at https://experts.shopify.com.

If you want to give it a go yourself, make a backup of your theme first. Then check out this page for details on what code you would need to change: https://help.shopify.com/themes/liquid/filters/array-filters#sort

★ ThemeUp: Nifty Upgrades for your Shopify Store ★ https://themeup.net
0 Likes
Lee11
New Member
7 0 0

Hi,

I was searching the discussion forums for this topic, and saw that this particular thread was not yet closed. Instead of making a new thread I figured I would post here.

I am looking to have items in the cart sorted first by size variant, and then by SKU number, so that when I see the order in the admin panel or on any printed invoice of orders pulled from our store, all items are sorted how I need to see them. Is this possible with the help of an expert / developer, or can this customization not be done in Shopify?

Thanks for the help.

0 Likes
UnifiedWeb
New Member
2 0 0

Hi there,  I know this was a long time ago but just wondering if you managed to get this sorted, I'm having the same problem!

0 Likes