fix history sort method
This commit is contained in:
+3
-3
@@ -391,9 +391,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
_sortHistory() {
|
_sortHistory() {
|
||||||
this._history = this._history.sort(function(current, next) {
|
this._history = this._history
|
||||||
return current[1] > next[1];
|
.sort((current, next) => current[1] - next[1])
|
||||||
}).reverse();
|
.reverse();
|
||||||
}
|
}
|
||||||
|
|
||||||
_updateHistory(query) {
|
_updateHistory(query) {
|
||||||
|
|||||||
Reference in New Issue
Block a user