EventMobi/thorium — pull request #24 by YixinXiong (2014-12-18 15:50:15+00:00)
Title: PLAT-154 added order-by and pagination functionality in thorium before f...

#### What's this PR do?
It adds order-by and pagination functionality in thorium so when multiple items are retrieved from Flux, an order and a specific subset of items may be returned instead of all. These functionalities are used through the query parameters sort, offset, and limit.
Sort takes in a + or a - to signify ascending/descending, and field(s) upon which to sort. Example: 'sort=+id,name' sorts in ascending order by id. If the ids are the same, then it sorts by name.
Offset is the entry on which results start returning, and limit is the how many are returned from that offset. Example: 'offset=50&limit=25' returns entries 50-75. Both query parameters are required for pagination functionality.