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*)