Skip to content

Sort as integers doesn't work correctly for lines with two integers #2025

@vgiotsas

Description

@vgiotsas

Sorting lines as integers (Edit > Line Operations > Sort Lines as Integers Ascending) should produce the following output:
2 3
2 4
2 10
2 20

Instead it produces the following output:
2 10
2 20
2 3
2 4

Namely, after the first value it switches to lexicographic sorting instead of numerical. My Notepad++ version is v6.9.2 on Windows 7,

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedfeatureFeature requests and Feature commits

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions