Sort items in order before printing

Solved
benwrigley
Excursionist
27 2 2

Hi There,

 

Does anyone know if there is a way to sort items in an order before printing?

 

We would like items to be grouped by collection so that our pickers can select items much faster.

 

Thanks!

 

Ben

0 Likes
benwrigley
Excursionist
27 2 2

This is an accepted solution.

So I ended up using Order Printer which allowed me to design a custom pick list.

 

Then sorting a field in liquid can be done like this:

 

{% for line_item in line_items | sort: 'title' %}

Will sort lineitems on the title attribute.

 

To sort items by a picking area ended up much more complex, but feel free to contact me if you have the same issues  

0 Likes
Mybeerbox
Tourist
11 1 4

Hey

I tried you solution but I didn't work on my side

CONTEXT

People order various products on my site, so the orders end up with 15-16 items

 

PROBLEM

To easy the logistics in Order Print App, I would like to have these ordered items sorted by Alpabetical Order following the categorization of these items by 
- Collections

- Products

How do I code this in Order Print ? 

Cheers

0 Likes
benwrigley
Excursionist
27 2 2

I'm afraid I got my answer from the liquid docs which don't seem to mention sorting on multiple objects/attributes

 

https://shopify.github.io/liquid/filters/sort/

0 Likes
Mybeerbox
Tourist
11 1 4

Hey 

Still stick with the ordering of my Order Print, any clue on this 

CONTEXT

People order various products on my site, so the orders end up with 15-16 items

 

PROBLEM

To easy the logistics in Order Print App, I would like to have these ordered items sorted by Alpabetical Order following the categorization of these items by 
- Collections

- Products

How do I code this in Order Print ? 

Cheers

0 Likes