perf: Sort files alphabetically in Content tab (#714)

This commit is contained in:
Rémi Marseault 2023-03-18 13:23:09 +01:00 committed by GitHub
parent 5aa1bf48ef
commit baf17c7695
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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}`,