thekarangoel/jReddit — pull request #4 by evinugur (2013-05-15 13:47:36+00:00)
Title: HTTP parameter to sort posts based off Reddit sorts

Reddit allows you to sort Submissions based off of time and popularity.

These parameters can be found here on http://reddit.com/dev/api

`confidence, top, new, hot, controversial, old, random`

I created an enum to represent these sorts, a String function to create a String representation of the enum (suffix them as HTTP params), and I added the ability to arrange Submissions on my getUserSubmissions Function and all the functions that call it.

Thankfully all this sorting is done on the back end :-)

--
Evin Ugur