mirror of
https://github.com/vale981/Vulcan
synced 2025-03-07 02:21:43 -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({
|
Template.categories.helpers({
|
||||||
categories: function(){
|
categories: function(){
|
||||||
return Categories.find();
|
return Categories.find({}, {sort: {name: 1}});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@ Template.nav.helpers({
|
||||||
return Categories.find().count();
|
return Categories.find().count();
|
||||||
},
|
},
|
||||||
categories: function(){
|
categories: function(){
|
||||||
return Categories.find();
|
return Categories.find({}, {sort: {name: 1}});
|
||||||
},
|
},
|
||||||
categoryLink: function () {
|
categoryLink: function () {
|
||||||
return getCategoryUrl(this.slug);
|
return getCategoryUrl(this.slug);
|
||||||
|
|
Loading…
Add table
Reference in a new issue