How can I sort products alphabetically on the packing slip?

Hello. My products are stored in my warehouse in alphabetical order but when I print a packing slip the products are no in alphabetical order. This makes it take too long to pack an order and causes confusion that leads to packing errors. Is there a way to sort the products on the packing slip?

This worked for me. In your packing slip template, find the line:

{% for line_item in line_items_in_shipment %}

and replace it with

{% assign lineitems = line_items_in_shipment | sort: “title” %}
{% for line_item in lineitems %}

2 Likes

Thanks for your guidance on this! I’m attempting to add Product Location to my packing lists, which I think I have figured out. Next, I’d like to apply a multi-level sort to packing lists. Can you offer assistance with respect to multi-level sort?

I’d like to first sort by Title, then by Color, then by a metafield I have named Sku_Location