Files
notifications-api/tests/app
Chris Hill-Scott b4291684b7 Sort jobs by processed time first
Say you have a dashboard with some jobs you sent. Normally looks like:

job | sent
--- | ---
file.csv | **5pm**
file.csv | 3pm
file.csv | 1pm
file.csv | 11am

However if your 5pm job was scheduled at lunchtime, then it will look
like this:

job | sent
--- | ---
file.csv | 3pm
file.csv | 1pm
file.csv | **5pm**
file.csv | 11am

This is because the jobs are sorted by when they were created, not when
they were sent. It looks wrong.

**For jobs that have already been sent**

This commit changes the sort order to be based on `processed_at`
instead.

**For upcoming jobs**

If a job doesn’t have a `processed_at` time then it’s scheduled, but
hasn’t started yet. Only in this case should we still be sorting by
`created_at`.
2016-10-10 09:36:53 +01:00
..
2016-09-12 16:41:48 +01:00
2016-10-07 13:08:41 +01:00
2016-10-10 09:36:53 +01:00
2016-09-23 15:59:23 +01:00
2016-09-26 12:35:59 +01:00
2016-10-03 14:48:06 +01:00
2016-08-24 10:59:33 +01:00
2016-09-26 12:35:59 +01:00
2016-10-10 09:36:53 +01:00