Sort Packing Slip by barcode

Highlighted
New Member
2 0 0

Hello, 

I've succesfully sorted a packing slip i print out by a print app using the sort function:

{% assign line_items = line_items | sort:"SKU" %}

Now I need to sort it by variant barcode; I tried with the following code but there is something missing bcs it doesn't work: 

{% assign line_items = line_items | sort:"line_item.variant.barcode" %}

Anybody knows where i'm doing wrong?

0 Likes
Highlighted
New Member
4 0 0

I am more interested in how your even got a barcode to show up on packing slip. I have been working for ages and I for the life of me can't get a barcode to populate. What is your secret?

0 Likes
Highlighted
New Member
2 0 0
Hello,
actually when I refer to packing slip I didn't mean the one in shopify
order dashboard, but it is a printout i get for the App: Order Print Pro.

0 Likes