Skip to content

Inconsistent sort behavior #11980

@odysei

Description

@odysei

While doing some sorting with new sort (v 0.8.0) that came with Ubuntu 26.04, I have noticed an inconsistent behavior.
Attaching example sort1.txt and sort2.txt files that:

  • lines 6&7 got randomly assigned using sort;
  • stay invariant if you run over sort (again).

Expected behavior:

  1. files sort1.txt and sort2 are identical;
  2. sort produces the same output for inputs from sort1.txt or sort2.txt

sort1.txt
sort2.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions