diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-08-02 10:58:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-02 10:58:22 +0100 |
commit | 5af7a56bb6853c0a7da949d7126940c03966804e (patch) | |
tree | ac1f1b4dbc88f365746e27a0bdf0465fbb48aa0c /interface | |
parent | 94999585138328c7ecff3add1d82807029764959 (diff) | |
parent | 0760edc8f450f1c7412980992f768d46bc136f95 (diff) | |
download | rspamd-5af7a56bb6853c0a7da949d7126940c03966804e.tar.gz rspamd-5af7a56bb6853c0a7da949d7126940c03966804e.zip |
Merge pull request #2392 from moisseev/history-sort
[WebUI] Fix symbols sorting by score
Diffstat (limited to 'interface')
-rw-r--r-- | interface/js/app/history.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/interface/js/app/history.js b/interface/js/app/history.js index 2807bac41..d3dc0873f 100644 --- a/interface/js/app/history.js +++ b/interface/js/app/history.js @@ -123,7 +123,7 @@ define(["jquery", "footable", "humanize"], } var compare = (getSelector("selSymOrder") === "score") ? function (e1, e2) { - return Math.abs(e1.score) < Math.abs(e2.score); + return Math.abs(e2.score) - Math.abs(e1.score); } : function (e1, e2) { return e1.name.localeCompare(e2.name); |