[portland] Sorting A List of Tuples

Rich Shepard rshepard at appl-ecosys.com
Thu Nov 8 21:35:38 CET 2007


On Thu, 8 Nov 2007, Adam Lowry wrote:

> You can do the reverse at the same time, if you'd like:
> sorted(key=blahblahblah, reverse=True)
>
> The reverse flag is also available on [].sort().

Adam,

   Thank you. I looked to see if there was a way to do this in one step, but
I didn't see it.

Rich

-- 
Richard B. Shepard, Ph.D.               |  Integrity            Credibility
Applied Ecosystem Services, Inc.        |            Innovation
<http://www.appl-ecosys.com>     Voice: 503-667-4517      Fax: 503-667-8863


More information about the Portland mailing list