in reply to Check if sort has changed order

> Or do I have to actually compare the lists before and after the sort (e.g. using ~~)?

Yes!

But could you please explain your use case? I'm smelling an XY question... =)

Cheers Rolf

( addicted to the Perl Programming Language)