|
@@ -9,7 +9,7 @@ module.exports = class extends Base {
|
|
const categoryId = this.get('id');
|
|
const categoryId = this.get('id');
|
|
|
|
|
|
const model = this.model('category');
|
|
const model = this.model('category');
|
|
- const data = await model.limit(10).where({parent_id: 0}).select();
|
|
|
|
|
|
+ const data = await model.limit(10).order({'sort_order': 'desc'}).where({parent_id: 0}).select();
|
|
|
|
|
|
let currentCategory = null;
|
|
let currentCategory = null;
|
|
if (categoryId) {
|
|
if (categoryId) {
|