Stream: announcements

Topic: Breaking change: List.sort API


view this post on Zulip Luke Boswell (Aug 27 2026 at 07:45):

As of this PR https://github.com/roc-lang/roc/pull/9832

Thank you to @Jonathan and @Brendan Hansknecht for their work on this.

view this post on Zulip Luke Boswell (Aug 27 2026 at 07:50):

Also if anyone is interested here are the fuzz targets I used to help validate the implementation and also find/fix some bugs :bug:

https://github.com/lukewilliamboswell/roc-fuzz/pull/8

view this post on Zulip Romain Lepert (Aug 27 2026 at 10:05):

:smiling_face_with_tear: on the FirstBeforeSecondEquivalent, and SecondBeforeFirst

#ideas > Sorting tuples? @ 💬

view this post on Zulip Karakatiza (Aug 27 2026 at 11:23):

I realize such a feedback is too late and I haven't followed this at all, but was something like "LeftComesFirst" and "LeftComesLast" or "RightComesFirst" considered?

view this post on Zulip Jonathan (Aug 27 2026 at 11:29):

It was ruled out because it is not uncommon for left and right to be mixed up.

view this post on Zulip Luke Boswell (Aug 28 2026 at 04:01):

Sorry for the spam... here is another update on this https://github.com/roc-lang/roc/pull/10975

match a.order_relative_to(b) {
    Before => ...
    Same => ...
    After => ...
}

Last updated: Sep 03 2026 at 15:16 UTC