andrewtennison / onside-api

the API
api.onside.me
1 stars 0 forks source link

Order channels by recency #17

Closed symposion closed 12 years ago

symposion commented 12 years ago

Be able to get channels in order of when they were created.

symposion commented 12 years ago

You can now order channels by any field on channel. Just specify an extra sort=XXX param on the URL. Multiple sorts are separated by commas, descending sorts are specified by appending " desc" to the column name. Example for sort by most recent, then name: curl "http://api.onside.me/channel?sort=added+desc,name"

This code is reasonably generic and could easily be used by other services if we need to exposing sorting for them.