From 938ba5b21a3fd486108b1f673ee03e8563dea33b Mon Sep 17 00:00:00 2001 From: Cade Scroggins Date: Tue, 28 Mar 2017 19:58:18 -0700 Subject: [PATCH] fix history sort method --- index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 5ba5bb4..41fdc01 100644 --- a/index.html +++ b/index.html @@ -391,9 +391,9 @@ } _sortHistory() { - this._history = this._history.sort(function(current, next) { - return current[1] > next[1]; - }).reverse(); + this._history = this._history + .sort((current, next) => current[1] - next[1]) + .reverse(); } _updateHistory(query) {