]> source.dussan.org Git - rspamd.git/commitdiff
Add a sort value to frequency; fixes #2298 2301/head
authorAndré Peters <andre.peters@debinux.de>
Fri, 22 Jun 2018 07:52:42 +0000 (09:52 +0200)
committerGitHub <noreply@github.com>
Fri, 22 Jun 2018 07:52:42 +0000 (09:52 +0200)
interface/js/app/symbols.js

index 7983ccc7f01b2e6265dcf83349cc2a88ce48ca6d..14223c1abd641215f58fde63eca66c33e81f2186 100644 (file)
@@ -219,7 +219,7 @@ function($) {
                     {"name":"symbol","title":"Symbol","style":{"font-size":"11px"}},
                     {"name":"description","title":"Description","breakpoints":"xs sm","style":{"font-size":"11px"}},
                     {"name":"weight","title":"Score","style":{"font-size":"11px"}},
-                    {"name":"frequency","title":"Frequency","breakpoints":"xs sm","style":{"font-size":"11px"}},
+                    {"name":"frequency","title":"Frequency","breakpoints":"xs sm","style":{"font-size":"11px"},"sortValue": function(value){return Number(value).toFixed(2)}},
                     {"name":"time","title":"Avg. time","breakpoints":"xs sm","style":{"font-size":"11px"}},
                     {"name":"save","title":"Save","style":{"font-size":"11px"}},
                   ],