Invoice PDF Items sorted in alphabetical order


I would like to know how can I make the Invoice PDF’s generate in alphabetical order?

I’m using the latest version of invoice plane.

Kind regards,

I figured it out.

For any one with the same issue, all you have to do it edit this file: application\modules\invoices\models\Mdl_items.php

In that file you will find this method:

public function default_order_by()

All you have to change is the line of code in the method to:
public function default_order_by()


That will work, but please keep in mind, that this change will be deleted/wiped with every update you make.
I would recommend opening a PR with this code and then differenciate it by a button or sort-setting. That would provide that function for all and make it persistent.

Thanks :wink: