From 3d81e30ee1d0dfb320b4716b4185a080cb594969 Mon Sep 17 00:00:00 2001 From: Jaden Diefenbaugh <blakcap@users.noreply.github.com> Date: Mon, 15 May 2017 17:00:54 +0200 Subject: [PATCH] reverse CSV-view sort so it sorts the same way as angular, #23 --- beat/web/reports/static/reports/app/directives/tableItem.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beat/web/reports/static/reports/app/directives/tableItem.js b/beat/web/reports/static/reports/app/directives/tableItem.js index 9a9ee7ab5..9162d1b98 100644 --- a/beat/web/reports/static/reports/app/directives/tableItem.js +++ b/beat/web/reports/static/reports/app/directives/tableItem.js @@ -125,7 +125,7 @@ angular.module('reportApp') let exps = scope.group.experiments // clone arr .map(e => `${e}`) - .sort((ea, eb) => (scope.sortField.isReversed ? -1 : 1) * (scope.sortFunc(ea) > scope.sortFunc(eb) ? -1 : 1)) + .sort((ea, eb) => (scope.sortField.isReversed ? -1 : 1) * (scope.sortFunc(ea) < scope.sortFunc(eb) ? -1 : 1)) ; let str = ''; -- GitLab