1
0
Fork 0

Fix languages alphabetical sort

This commit is contained in:
Chocobozzz 2023-06-19 10:11:23 +02:00
parent 58af76dc4e
commit 7c77ace9a7
No known key found for this signature in database
GPG key ID: 583A612D890159BE

View file

@ -184,7 +184,9 @@ export class ServerService {
}
})
if (sort === true) sortBy(hashToPopulate, 'label')
if (sort === true) {
hashToPopulate.sort((a, b) => a.label.localeCompare(b.label))
}
return hashToPopulate
}),