Allow sorting questions in the API.

I was showing off the API to Noah and philipp, and realized that a) it was unsorted, and b) one couldn't change the sorting. This fixes both of those.

r?