Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Perl6: Unary Sort. Parent comment
You can do this in python with the key function returning a list/tuple:
mylist.sort(key=lambda element: (element.attribute1, -element.attribute2))
You can do this in python with the key function returning a list/tuple: