fix suggestion sorting...
This commit is contained in:
+2
-2
@@ -347,8 +347,8 @@
|
|||||||
if (!exists) queries.push([q, 1]);
|
if (!exists) queries.push([q, 1]);
|
||||||
|
|
||||||
queries = queries.sort(function(current, next) {
|
queries = queries.sort(function(current, next) {
|
||||||
return current[1] < next[1];
|
return current[1] > next[1];
|
||||||
});
|
}).reverse();
|
||||||
|
|
||||||
localStorage.setItem('queries', JSON.stringify(queries));
|
localStorage.setItem('queries', JSON.stringify(queries));
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user