News for hackers. Stuff that matters.
Re:Perl6: Unary Sort by rmc on Tuesday December 24, 2013 @12:23PM (#6960196)
Elsewere, say you want to sort a non-omogeneous list, or according to a custom order (attribute1 descending, attribute2 ascending) cmp make this easy

You can do this in python with the key function returning a list/tuple:

    mylist.sort(key=lambda element: (element.attribute1, -element.attribute2))
Re:Perl6: Unary Sort by _ZeD_ on Wednesday December 25, 2013 @04:56AM (#6962715)
I'm not sure you can do -"string" :)