05AB1E icon indicating copy to clipboard operation
05AB1E copied to clipboard

Sort `{` acts weird in some cases (even though `Σ}` works fine)

Open kcruijss opened this issue 1 year ago • 3 comments

Not sure how to explain it, but { didn't sort a list of lists in expected lexicographical order in one of my programs, even with --no-lazy compiler flag. And the weirdest part is that Σ} (sort-by builtin without implementation) does sort correctly as expected.

Not sure if it's relevant (it probably is), but I've used ā._Dí« beforehand to get all rotations and reflections of the list.

Try it online to reproduce.
Found in this 05AB1E answer of mine.

kcruijss avatar Nov 04 '22 18:11 kcruijss