mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05: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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue