Skip to content

Qt properties editor could sort lines labels using natsort #6315

Closed
@anntzer

Description

@anntzer

When there are more than 10 (unlabeled) lines in a graph, they appear in the combobox as

_line0
_line1
_line10
_line11
...
_line2
_line3

etc.

"Natural" integer sorting (https://pypi.python.org/pypi/natsort) would be, well, more natural here. Or one could hack the "default" labels ("_lineX") to return a str subclass with a custom comparator, so that other labels are not affected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions