Sales order Print format item sorting based on item code

Any solution for sorting items ascending based on item code in sales order print format using custom format?
Capture

any help?

In your custom print format, you may have to use Jinja Templating language to achieve the same.

hi @Pawan,
How can i make it using jinja templating language?
can you help me?

Hi Roger,

Were you able to achieve this?