Add sorting by Status or Path to Local Changes / Stashes / History | Changes display modes dropdown
I have recently discovered this brilliant git client, and I was missing Sort by Status feature in all the changes view.
I have created sorting mode dropdown functionality to the changes view, allowing users to sort changes by either file path (default, previous only option) or by status (modified, renamed, added, deleted, untracked, conflicted, etc.) via the ChangeDisplayMode button.
Key features:
- New sorting options in the ChangeDisplayMode menu: “Sort by Path” and “Sort by Status”, with proper Checkmark icon indicating which one is selected
- Status-based sorting groups changes by type, with logical priority (e.g., conflicts and modified files first)
- Sorting mode is persisted per context (unstaged, staged, stash, history commit changes)
- UI and localization updated for all supported languages
Sorting by Status in my is increasing changes readability a lot, I would even vote for making it default view.
As mentioned in above comments I have refactored the duplicated GetStatusSortPriority logic into a static method in Models.Change as suggested. All usages now reference the shared method. Build works fine :)