mirror of
https://github.com/gwenhael-le-moine/credger.git
synced 2024-12-26 09:58:36 +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)
|
API.balance(ctrl.period, ctrl.categories, ctrl.depth)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
ctrl.raw_data = _(response.data)
|
ctrl.raw_data = _(response.data)
|
||||||
.sortBy((account) => { return account.amount; })
|
.sortBy((account) => { return account.name; });
|
||||||
.reverse();
|
|
||||||
|
|
||||||
ctrl.graph_options.chart.height = 60 + (25 * ctrl.raw_data.length);
|
ctrl.graph_options.chart.height = 60 + (25 * ctrl.raw_data.length);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue