mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2025-03-31 05:43:33 +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) {
|
function createFolder(parent, name, children) {
|
||||||
|
children.sort((a,b) => a.name.localeCompare(b.name))
|
||||||
return {
|
return {
|
||||||
name: name,
|
name: name,
|
||||||
fullName: parent === undefined ? name : `${parent.fullName}/${name}`,
|
fullName: parent === undefined ? name : `${parent.fullName}/${name}`,
|
||||||
|
|
Loading…
Add table
Reference in a new issue