mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 15:43:49 +01:00
Sort server list alphabetically
This commit is contained in:
parent
0de588ee17
commit
d6fa672fac
@ -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}>
|
||||
|
Loading…
Reference in New Issue
Block a user