mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 11:54:33 +03:00
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:
parent
0a41167f52
commit
6bde09bd11
@ -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');
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user