summaryrefslogtreecommitdiff
path: root/client/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/index.js')
-rw-r--r--client/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/index.js b/client/index.js
index a8013c5..e184590 100644
--- a/client/index.js
+++ b/client/index.js
@@ -68,7 +68,7 @@ function sortByColor () {
els.sort((a,b) => a.hue<b.hue?-1:a.hue==b.hue?0:1).map(resort)
}
function sortByFrequency () {
- els.sort((a,b) => a.freq<b.freq?-1:a.freq==b.freq?0:1).map(resort)
+ els.sort((a,b) => a.freq>b.freq?-1:a.freq==b.freq?0:1).map(resort)
}
function resort (tuple,i) {
const position = order[i]