Added default sorting to product list

refs https://github.com/TryGhost/Team/issues/633

Adds default alphabetical sorted order for Product list
This commit is contained in:
Rishabh 2021-04-27 13:55:35 +05:30
parent 0a41167f52
commit 6bde09bd11

View File

@ -2,6 +2,6 @@ import Controller from '@ember/controller';
export default class ProductsController extends Controller {
get products() {
return this.model;
return this.model.sortBy('name');
}
}