From d6fa672facf5412b3c719ed9dd0c1794748958aa Mon Sep 17 00:00:00 2001 From: Martin Fournier Date: Sun, 9 Jan 2022 05:43:50 -0500 Subject: [PATCH] Sort server list alphabetically --- src/ui/React/ServerDropdown.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/React/ServerDropdown.tsx b/src/ui/React/ServerDropdown.tsx index 0c93a9dc7..1ee1623b3 100644 --- a/src/ui/React/ServerDropdown.tsx +++ b/src/ui/React/ServerDropdown.tsx @@ -53,7 +53,7 @@ export function ServerDropdown(props: IProps): React.ReactElement { } const servers = []; - for (const server of GetAllServers()) { + for (const server of GetAllServers().sort((a, b) => a.hostname.localeCompare(b.hostname))) { if (isValidServer(server)) { servers.push(