mirror of
https://github.com/gwenhael-le-moine/credger.git
synced 2024-12-25 09:58:43 +01:00
sort details by account name
This commit is contained in:
parent
022d1c3c43
commit
d5707c70a9
1 changed files with 1 additions and 2 deletions
|
@ -71,8 +71,7 @@ app.component('bucket',
|
|||
API.balance(ctrl.period, ctrl.categories, ctrl.depth)
|
||||
.then((response) => {
|
||||
ctrl.raw_data = _(response.data)
|
||||
.sortBy((account) => { return account.amount; })
|
||||
.reverse();
|
||||
.sortBy((account) => { return account.name; });
|
||||
|
||||
ctrl.graph_options.chart.height = 60 + (25 * ctrl.raw_data.length);
|
||||
|
||||
|
|
Loading…
Reference in a new issue