Closed Janiczek closed 3 years ago
Hey @Janiczek !
I made this benchmark https://ellie-app.com/cKKDPFjHsC9a1 and it looks like List.sortBy identity >> List.reverse
is faster. But, since that is also the naive and obvious way of reversing a sort then maybe its not useful to have a helper for this.
@Chadtech I haven't benchmarked this, good thinking! If reverse-using variant is faster, let's not merge this then 👍💯
Alternative name might be
sortByDescending
?Notably this implementation doesn't call
List.reverse
.