]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix languages alphabetical sort
authorChocobozzz <me@florianbigard.com>
Mon, 19 Jun 2023 08:11:23 +0000 (10:11 +0200)
committerChocobozzz <me@florianbigard.com>
Mon, 19 Jun 2023 08:11:23 +0000 (10:11 +0200)
client/src/app/core/server/server.service.ts

index fc269749bf36d0d7df5df070b83de7403fb4ad80..75dbe3e60581e4a2698a274414df320f7bd9df89 100644 (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
                  }),