fix sorting in file manager

This commit is contained in:
2020-08-09 20:24:40 +02:00
parent 588b829129
commit 096b26bc93
3 changed files with 25 additions and 39 deletions

View File

@@ -97,6 +97,7 @@ DirectoryElement.prototype.search = function(term) {
for (let i in this.allFiles) {
this.visibleFiles.push(i)
}
this.sortBy("")
this.renderVisibleFiles(true)
return
}
@@ -107,7 +108,6 @@ DirectoryElement.prototype.search = function(term) {
}
}
// We have to resort because we modified the visibleFiles array
this.sortBy("")
this.renderVisibleFiles(true)
}