Implement course-wide asset paging methods.

Add SortedCollection class to help sort lists efficiently.
https://openedx.atlassian.net/browse/PLAT-74
If you made changes, especially, please check in the virgin version in a PR before this one so that your changes show as changes to the public one so that when/if we update the public one we can reapply the changes.