Order custom fields

I created some custom fields for invoices and would like to have them ordered the way I created them, e.g. 1-2-3-4-5 and not 2-3-5-4-1.

Currently they seem to be displayed in custom fields page and in invoice the way they are saved in database but this is not the order I created them. I tried to sort them by using an “order_by ‘custom field id’”, but either I didn’t find the correct place doing this or I used a wrong syntax.

Can anybody give me a hint how to do this. Or is there another way sorting the custom fields?

Currently there’s no possibility to do this. I may be taking a look any time soon if I can get it to work, since I’ve modified so much in InvoicePlane’s source (especially custom fields) I could give it at least a try. :smile:

1 Like

Thanks, this would be nice.

HI,
I have the same issue, is there any place where we could edit the code to add sorting by some field! (record id would be fine as it is easy to change in the mysql table)
Thanks in advance