From d5707c70a9a2858ab9ea888bd5f01e3d4e477326 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Mon, 11 Dec 2017 16:30:17 +0100 Subject: [PATCH] sort details by account name --- public/ts/components/bucket.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/public/ts/components/bucket.ts b/public/ts/components/bucket.ts index 2edf501..1b2a9aa 100644 --- a/public/ts/components/bucket.ts +++ b/public/ts/components/bucket.ts @@ -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);