Fork for macOS Branch List Sorting Issue
Issue Title
Branch list sorting is inconsistent when branch names contain version numbers and Chinese characters on macOS
Description
Hi, I noticed a sorting issue in the branch list in Fork for macOS.
When branch names contain version-like numbers and Chinese characters, the displayed order does not appear to follow either lexicographical order or natural numeric order.
Actual Behavior
The branch list currently appears like this:
feature/DDE_3.30狂鲨海宫
feature/DDE_3.34巨魔骑士
feature/DDE_3.10七周年
feature/DDE_3.32八周年
This order looks incorrect. For example, 3.34, 3.10, and 3.32 are mixed together in a way that does not seem to match either name sorting or natural numeric sorting.
Expected Behavior
The branches should be sorted consistently, for example either lexicographically or by natural numeric order.
Natural descending order could be:
feature/DDE_3.34巨魔骑士
feature/DDE_3.32八周年
feature/DDE_3.30狂鲨海宫
feature/DDE_3.10七周年
Or natural ascending order could be:
feature/DDE_3.10七周年
feature/DDE_3.30狂鲨海宫
feature/DDE_3.32八周年
feature/DDE_3.34巨魔骑士
Environment
- App: Fork for macOS
- Fork version: TODO
- macOS version: TODO
Screenshot
Attached screenshot shows the current branch order.
Fork for macOS Branch List Sorting Issue
Issue Title
Branch list sorting is inconsistent when branch names contain version numbers and Chinese characters on macOS
Description
Hi, I noticed a sorting issue in the branch list in Fork for macOS.
When branch names contain version-like numbers and Chinese characters, the displayed order does not appear to follow either lexicographical order or natural numeric order.
Actual Behavior
The branch list currently appears like this:
This order looks incorrect. For example,
3.34,3.10, and3.32are mixed together in a way that does not seem to match either name sorting or natural numeric sorting.Expected Behavior
The branches should be sorted consistently, for example either lexicographically or by natural numeric order.
Natural descending order could be:
Or natural ascending order could be:
Environment
Screenshot
Attached screenshot shows the current branch order.