05AB1E
05AB1E copied to clipboard
Sort `{` acts weird in some cases (even though `Σ}` works fine)
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.