From 09f420a0708a26a5e8e6b47b84c53d0da7c478d1 Mon Sep 17 00:00:00 2001 From: Karan Bhangui Date: Sun, 9 Feb 2014 14:16:18 -0800 Subject: [PATCH] categories are sorted by name --- client/views/admin/categories.js | 2 +- client/views/common/nav.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/views/admin/categories.js b/client/views/admin/categories.js index ae53edb03..5fa6ba4d1 100644 --- a/client/views/admin/categories.js +++ b/client/views/admin/categories.js @@ -1,6 +1,6 @@ Template.categories.helpers({ categories: function(){ - return Categories.find(); + return Categories.find({}, {sort: {name: 1}}); } }); diff --git a/client/views/common/nav.js b/client/views/common/nav.js index d3e78f11e..0e4123e98 100644 --- a/client/views/common/nav.js +++ b/client/views/common/nav.js @@ -30,7 +30,7 @@ Template.nav.helpers({ return Categories.find().count(); }, categories: function(){ - return Categories.find(); + return Categories.find({}, {sort: {name: 1}}); }, categoryLink: function () { return getCategoryUrl(this.slug);