order timestamps and subtotals