mirror of
https://github.com/xvvvyz/tilde.git
synced 2026-03-11 14:44:24 +00:00
fix suggestion sorting...
This commit is contained in:
parent
4f68ffc740
commit
173a1f1e5b
1 changed files with 2 additions and 2 deletions
|
|
@ -347,8 +347,8 @@
|
|||
if (!exists) queries.push([q, 1]);
|
||||
|
||||
queries = queries.sort(function(current, next) {
|
||||
return current[1] < next[1];
|
||||
});
|
||||
return current[1] > next[1];
|
||||
}).reverse();
|
||||
|
||||
localStorage.setItem('queries', JSON.stringify(queries));
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue