Merge pull request #2500 from MartinFournier/fix/server-list-alphabetical

Sort server list alphabetically
This commit is contained in:
hydroflame 2022-01-09 12:58:54 -05:00 committed by GitHub
commit ee07942d3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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(
<MenuItem key={server.hostname} value={server.hostname}>