Fix languages alphabetical sort

pull/5860/head
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
1 changed files with 3 additions and 1 deletions

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
}),