Views.js: Sort the results in the template view.