Order previous invoices by end date descending and id descending