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?