fix history sort method

This commit is contained in:
Cade Scroggins 2017-03-28 19:58:18 -07:00
parent b2eb4a4f7a
commit 938ba5b21a

View file

@ -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) {