mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
categories are sorted by name
This commit is contained in:
parent
6b00f4402d
commit
09f420a070
2 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
Template.categories.helpers({
|
||||
categories: function(){
|
||||
return Categories.find();
|
||||
return Categories.find({}, {sort: {name: 1}});
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue