mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 09:33: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 = [];
|
const servers = [];
|
||||||
for (const server of GetAllServers()) {
|
for (const server of GetAllServers().sort((a, b) => a.hostname.localeCompare(b.hostname))) {
|
||||||
if (isValidServer(server)) {
|
if (isValidServer(server)) {
|
||||||
servers.push(
|
servers.push(
|
||||||
<MenuItem key={server.hostname} value={server.hostname}>
|
<MenuItem key={server.hostname} value={server.hostname}>
|
||||||
|
Loading…
Reference in New Issue
Block a user