Org Picker - sorting org options (by Alias/Username) #6454
Closed
AndrewStopchenko-SO
started this conversation in
Ideas
Replies: 4 comments
|
Thank you for filing this feature request. We appreciate your feedback and will review the feature at our next grooming session. We prioritize feature requests with more upvotes and comments. |
0 replies
|
This issue has been linked to a new work item: W-19178143 |
0 replies
|
Looks like this was already requested in the #6074 Discussion... I believe I checked across the Issues, but didn't review discussions on this topic. At the same time, the #6074 Discussion doesn't seem to have the work item linked. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Is your feature request related to a problem? Please describe.
Currently, Default Org Picker shows known org options in a somewhat random order. I wasn't able to follow the ordering principle - maybe there is no any sorting at the moment, since fast-clicking the toolbar Default Org picker item sometimes shuffles the rendered options.
This is an example with only 3 orgs authorized in the WSL - it seems the options are sorted neither by alias, nor by username in this case:

When having more orgs registered in the SF CLI, this randomness makes it really hard to locate the needed org quickly without filtering the list by typing the alias/username search text.
Describe the solution you'd like
It would be nice if the org options are sorted alphabetically by their Aliases.
I am not sure if the Org Picker even displays orgs that were authorized but not assigned with an alias (possible via CLI) - but if these orgs also get listed, they can probably use the
usernameas a fallback sorted value.The
sf org listCLI command's output might also be a good reference point for sorting the org options: it looks like CLI output first buckets all orgs into DevHubs/non-DevHubs/Sandboxes/scratchOrgs sub-categories, and then sorts (probably by Alias, then by Username) within each sub-category.Describe alternatives you've considered
Nothing I could think of, except of using the unsorted orgs list (as it is now).
Salesforce Extension Pack: v64.5.1
SF CLI version: @salesforce/cli/2.98.6 wsl-x64 node-v20.18.3
VSCode Version: 1.103.0-insider (user setup)
OS: Windows_NT x64 10.0.19045
SF CLI details:
All reactions