Summary
The sortBranchesBy and sortTagsBy settings are not applied when rendering branches and tags in tree views. The sort toolbar commands update the configuration, and the views refresh in response, but the orderBy value is never passed through to the sorting functions — branches and tags always sort by the hardcoded default date:desc.
Impact
Users changing the sort order via the Branches, Remotes, or Tags view toolbar see no effect. The sort commands were added in #4738 but the wiring to the actual sorting was incomplete — only the quick-pick wizard reads the config value.
Affected Views
- Branches view —
BranchesNode passes sort options without orderBy
- Remotes view —
RemoteNode passes sort: true without orderBy
- Tags view —
TagsNode passes sort: true without orderBy
- Repositories view — reuses the same nodes, so also affected
Contributors, Worktrees, and Repositories views are not affected — they use wrapper functions that correctly read the config.
Validation
- Open the Branches view and sort by name — branches should reorder alphabetically
- Switch to sort by date — branches should reorder by most recent commit
- Repeat for Tags view and Remotes view
- Verify quick-pick sorting still works independently
Summary
The
sortBranchesByandsortTagsBysettings are not applied when rendering branches and tags in tree views. The sort toolbar commands update the configuration, and the views refresh in response, but theorderByvalue is never passed through to the sorting functions — branches and tags always sort by the hardcoded defaultdate:desc.Impact
Users changing the sort order via the Branches, Remotes, or Tags view toolbar see no effect. The sort commands were added in #4738 but the wiring to the actual sorting was incomplete — only the quick-pick wizard reads the config value.
Affected Views
BranchesNodepasses sort options withoutorderByRemoteNodepassessort: truewithoutorderByTagsNodepassessort: truewithoutorderByContributors, Worktrees, and Repositories views are not affected — they use wrapper functions that correctly read the config.
Validation