Blake Erickson 0e6cb752da Clean up valid order names
Add a sortable mappings list to match other endpoints and so that you
don't have to use database column names.

Example: 'created' => 'created_at'

Also cleaned up some of the logic since a lot of it got moved into the
SORTABLE_MAPPING hash.
2017-02-25 11:51:40 -07:00
..
2016-09-21 16:04:41 +08:00
2016-04-07 12:56:43 +10:00
2016-09-19 19:39:46 +02:00
2016-03-09 08:58:44 +01:00
2017-02-24 11:35:33 +01:00
2017-01-18 18:22:03 -05:00
2016-05-31 07:57:28 +10:00
2015-09-09 15:34:53 +02:00
2017-02-24 10:19:34 +11:00
2017-02-14 09:40:15 -05:00
2016-02-25 12:13:59 +10:00
2017-01-06 14:54:38 -08:00
2015-09-23 15:24:30 +10:00
2016-07-15 11:36:06 +08:00
2016-12-19 10:00:28 +01:00
2016-03-21 23:06:39 -03:00
2017-02-15 17:27:10 -05:00
2016-12-02 17:03:31 +11:00
2017-02-14 17:40:44 -05:00
2017-02-07 09:22:16 -05:00