On Tue, 21 May 2024 at 14:01, Paul King <pa...@asert.com.au> wrote: > On Tue, May 21, 2024 at 3:13 PM M.v.Gulik <mvgu...@gmail.com> wrote: > > > > After fixing my local bug I rechecked the "*.sort{ a, b -> a.y == b.y ? > -a.y <=> -b.y : a.x <=> b.x }" variant. > > Same result/conclusion. > > In terms of referencing the properties, you'd want to swap the order > you have above, i.e. you'd not want to have y ? y : x but rather y ? x > : y or x ? y : x. >
Darn. Yea, your right. I messed it up (again) :-/ . After fixing that (and triple checking) it worked like advertised. Thanks again. On Tue, 21 May 2024 at 14:01, Paul King <pa...@asert.com.au> wrote: > Also, the "*.sort" would only be needed if you have lists of lists of maps. > Ditching that "<varname>.sort{ a, b -> a.x <=> b.x }.sort{ a, b -> -a.y <=> -b.y}" idea of mine. (might play around with it a bit more on a rainy day to see in which cases it would fail, just out of curiosity.)