sort details by account name

This commit is contained in:
Gwenhael Le Moine 2017-12-11 16:30:17 +01:00
parent 022d1c3c43
commit d5707c70a9
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -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);