mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2024-11-25 10:55:50 +03:00
perf: Sort files alphabetically in Content tab (#714)
This commit is contained in:
parent
5aa1bf48ef
commit
baf17c7695
1 changed files with 1 additions and 0 deletions
|
@ -105,6 +105,7 @@ function createFile(data, name, children) {
|
|||
}
|
||||
|
||||
function createFolder(parent, name, children) {
|
||||
children.sort((a,b) => a.name.localeCompare(b.name))
|
||||
return {
|
||||
name: name,
|
||||
fullName: parent === undefined ? name : `${parent.fullName}/${name}`,
|
||||
|
|
Loading…
Reference in a new issue