From 173a1f1e5bad5b99ffc5dea50600c01a3173ddc5 Mon Sep 17 00:00:00 2001 From: Cade Scroggins Date: Fri, 14 Oct 2016 00:44:22 -0700 Subject: [PATCH] fix suggestion sorting... --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); },