diff --git a/index.html b/index.html index f1b9e12..0f141a5 100644 --- a/index.html +++ b/index.html @@ -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)); },