Re: Sort on linkedlists with double values (inside main list)

Paul King <[email protected]>
Newsgroups gmane.comp.lang.groovy.user
Message-ID <CAMbkE7SC8P66m4y8mFHZFV5QVQO4Jb2rtib+7yAq9F0W0FTg5A@mail.gmail.com>
What sort result are you trying to achieve? There should be no need to
perform any recursion.

On Mon, May 20, 2024 at 11:36 PM M.v.Gulik <[email protected]> wrote:
>
> Tried "*.sort{ a, b -> a.x == b.x ? a.y <=> b.y : a.x <=> b.x }" in the actual source code so see its effect
> And it turns out its not doing the same job as "*.sort{[it.y, it.x]}" (not unless, I guess, its run recursively until the list-order stopped changing ... which I'm ofc not going to do)
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.