Skip to content

Instantly share code, notes, and snippets.

@robi42
Created October 15, 2010 22:56
Show Gist options
  • Select an option

  • Save robi42/629109 to your computer and use it in GitHub Desktop.

Select an option

Save robi42/629109 to your computer and use it in GitHub Desktop.
diff --git a/actions.js b/actions.js
index cccc9f0..a87d4bb 100644
--- a/actions.js
+++ b/actions.js
@@ -28,7 +28,7 @@ exports.edit = function(req, name) {
exports.list = function(req) {
return Response.skin(module.resolve('./skins/list.html'), {
- pages: Page.all().sort(strings.Sorter('name'))});
+ pages: Page.query().orderBy('name').select()});
};
function updatePage(page, req) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment