Ensures that 'Preview' opens in the same window

This is in response to feedback from user testing.
Corrected sort order issue on preview/download

No particular sort order was being applied to the course objects, and as a
result items were only rendered on the page in date order.  This fixes
that.
Merge pull request #412 from adaptlearning/preview-fix

Preview fix