<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-8885167082319491081.post3504916106018812799..comments</id><updated>2010-03-05T14:18:32.274-05:00</updated><title type='text'>Comments on digital sanitation engineering: Sorting Python Dictionary By Value, Take 2</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.client9.com/feeds/3504916106018812799/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8885167082319491081/3504916106018812799/comments/default'/><link rel='alternate' type='text/html' href='http://blog.client9.com/2008/09/sorting-python-dictionary-by-value-take.html'/><author><name>nickg</name><uri>http://www.blogger.com/profile/04659163622120256748</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8885167082319491081.post-5474277245354291979</id><published>2008-09-10T10:19:00.000-04:00</published><updated>2008-09-10T10:19:00.000-04:00</updated><title type='text'>I'm glad that this topic has created so much good ...</title><content type='html'>I'm glad that this topic has created so much good discussion.  There aren't a whole lot of people doing performance profiling on python code.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8885167082319491081/3504916106018812799/comments/default/5474277245354291979'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8885167082319491081/3504916106018812799/comments/default/5474277245354291979'/><link rel='alternate' type='text/html' href='http://blog.client9.com/2008/09/sorting-python-dictionary-by-value-take.html?showComment=1221056340000#c5474277245354291979' title=''/><author><name>writeonly</name><uri>http://writeonly.wordpress.com/</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.client9.com/2008/09/sorting-python-dictionary-by-value-take.html' ref='tag:blogger.com,1999:blog-8885167082319491081.post-3504916106018812799' source='http://www.blogger.com/feeds/8885167082319491081/posts/default/3504916106018812799' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8885167082319491081.post-607868377483829460</id><published>2008-09-10T08:55:54.566-04:00</published><updated>2008-09-10T08:55:54.566-04:00</updated><title type='text'>thanks lorg!  updated with corrections. --nickg</title><content type='html'>thanks lorg!  updated with corrections. --nickg</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8885167082319491081/3504916106018812799/comments/default/607868377483829460'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8885167082319491081/3504916106018812799/comments/default/607868377483829460'/><link rel='alternate' type='text/html' href='http://blog.client9.com/2008/09/sorting-python-dictionary-by-value-take.html?showComment=1221051354566#c607868377483829460' title=''/><author><name>nickg</name><uri>http://www.blogger.com/profile/04659163622120256748</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='04565813663549628168'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.client9.com/2008/09/sorting-python-dictionary-by-value-take.html' ref='tag:blogger.com,1999:blog-8885167082319491081.post-3504916106018812799' source='http://www.blogger.com/feeds/8885167082319491081/posts/default/3504916106018812799' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8885167082319491081.post-5930022475008024609</id><published>2008-09-10T02:51:00.000-04:00</published><updated>2008-09-10T02:51:00.000-04:00</updated><title type='text'>You have a small mistake that doesn't affect the r...</title><content type='html'>You have a small mistake that doesn't affect the result:&lt;BR/&gt;In sbv0 you are not sorting by value, but by value and then by key.&lt;BR/&gt;&lt;BR/&gt;To sort by value you would write &lt;BR/&gt;&lt;BR/&gt;key = lambda (k,v): v&lt;BR/&gt;&lt;BR/&gt;This improves the result by a little bit, but still the itemgetter wins.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8885167082319491081/3504916106018812799/comments/default/5930022475008024609'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8885167082319491081/3504916106018812799/comments/default/5930022475008024609'/><link rel='alternate' type='text/html' href='http://blog.client9.com/2008/09/sorting-python-dictionary-by-value-take.html?showComment=1221029460000#c5930022475008024609' title=''/><author><name>lorg</name><uri>http://www.algorithm.co.il</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.client9.com/2008/09/sorting-python-dictionary-by-value-take.html' ref='tag:blogger.com,1999:blog-8885167082319491081.post-3504916106018812799' source='http://www.blogger.com/feeds/8885167082319491081/posts/default/3504916106018812799' type='text/html'/></entry></feed>