mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 01:23:49 +01:00
Merge pull request #2500 from MartinFournier/fix/server-list-alphabetical
Sort server list alphabetically
This commit is contained in:
commit
ee07942d3e
@ -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