aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-06-19 10:11:23 +0200
committerChocobozzz <me@florianbigard.com>2023-06-19 10:11:23 +0200
commit7c77ace9a7678e2e0e15644b0080f2dd31d2f7ec (patch)
tree4408cfb398e374eea2e4f08c192b5de23f1bb49d /client/src/app
parent58af76dc4ea9c4f97fca5b5952d9bc4071b7b20a (diff)
downloadPeerTube-7c77ace9a7678e2e0e15644b0080f2dd31d2f7ec.tar.gz
PeerTube-7c77ace9a7678e2e0e15644b0080f2dd31d2f7ec.tar.zst
PeerTube-7c77ace9a7678e2e0e15644b0080f2dd31d2f7ec.zip
Fix languages alphabetical sort
Diffstat (limited to 'client/src/app')
-rw-r--r--client/src/app/core/server/server.service.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/client/src/app/core/server/server.service.ts b/client/src/app/core/server/server.service.ts
index fc269749b..75dbe3e60 100644
--- a/client/src/app/core/server/server.service.ts
+++ b/client/src/app/core/server/server.service.ts
@@ -184,7 +184,9 @@ export class ServerService {
184 } 184 }
185 }) 185 })
186 186
187 if (sort === true) sortBy(hashToPopulate, 'label') 187 if (sort === true) {
188 hashToPopulate.sort((a, b) => a.label.localeCompare(b.label))
189 }
188 190
189 return hashToPopulate 191 return hashToPopulate
190 }), 192 }),