mirror of https://github.com/Chocobozzz/PeerTube
Fix languages alphabetical sort
parent
58af76dc4e
commit
7c77ace9a7
|
@ -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
|
||||
}),
|
||||
|
|
Loading…
Reference in New Issue