Skip to content

Fork for macOS Branch List Sorting Issue #2650

@andrinur22

Description

@andrinur22

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions