Add max_results and sort

This is needed in order to get the "top N" of something if the total number of things in analytics is very large, as is the case with some of the content dashboards.