Re: ZTK 2.0: Deprecate zope.sequencesort
Lennart Regebro <[email protected]>
| Newsgroups | gmane.comp.web.zope.devel |
|---|---|
| Message-ID | <CAL0kPAXBmivCRSVdfAQwTUUwKQyMuTBtbxYJd8cUzB3ry0xfhQ@mail.gmail.com> |
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. _______________________________________________ Zope-Dev maillist - [email protected] https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )