Log invoice number modifications and add support for order by.