j
k
j a
j l
I'm sorry, it's early in the morning. It is of course:
sorted(sorted(news_stories, key=lambda x: x.publication_date, reverse=True), key=lambda x: x.category)
I forgot the "key=" bit.
Back to the thread
Back to the list