Revert "fixed ordering dates for invoices"

This reverts commit 7aefd2d9f9156b92a885eb2553ed200ddd56295b.