mirror of
https://github.com/xvvvyz/tilde.git
synced 2026-03-11 14:44:24 +00:00
fix history sort method
This commit is contained in:
parent
b2eb4a4f7a
commit
938ba5b21a
1 changed files with 3 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue