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

"M.v.Gulik" <[email protected]>
Newsgroups gmane.comp.lang.groovy.user
Message-ID <CAOSpiuHzaR2GFNe3RHGvgEyKaX2SN_PNnunNzjGUwhyLRF+i=Q@mail.gmail.com>
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.