categories order

This commit is contained in:
afc163 2015-07-02 17:31:06 +08:00
parent 0963f9f608
commit 6d683c8058

View File

@ -45,6 +45,9 @@ module.exports = function(nico) {
}
return item.meta.category;
}));
categories = categories.sort(function(a, b) {
return a.length - b.length;
});
return categories;
},
find_demo_in_component: function(pages, directory) {