<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Python: Sort a list of dicts by dict-key</title>
	<atom:link href="http://code.pui.ch/2007/07/23/python-sort-a-list-of-dicts-by-dict-key/feed/" rel="self" type="application/rss+xml" />
	<link>http://code.pui.ch/2007/07/23/python-sort-a-list-of-dicts-by-dict-key/</link>
	<description>Random code-snippets and tips</description>
	<lastBuildDate>Tue, 17 Aug 2010 19:16:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Rob</title>
		<link>http://code.pui.ch/2007/07/23/python-sort-a-list-of-dicts-by-dict-key/comment-page-1/#comment-76765</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Tue, 21 Oct 2008 18:55:57 +0000</pubDate>
		<guid isPermaLink="false">http://code.pui.ch/2007/07/23/python-sort-a-list-of-dicts-by-dict-key/#comment-76765</guid>
		<description>You could also use &quot;list.sort(lambda x, y: cmp(x[&#039;c&#039;], y[&#039;c&#039;]))&quot;. BTW, you&#039;re shadowing (I think that&#039;s the right term) the built-in definition of list([sequence]) as a constructor for lists.</description>
		<content:encoded><![CDATA[<p>You could also use &#8220;list.sort(lambda x, y: cmp(x['c'], y['c']))&#8221;. BTW, you&#8217;re shadowing (I think that&#8217;s the right term) the built-in definition of list([sequence]) as a constructor for lists.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://code.pui.ch/2007/07/23/python-sort-a-list-of-dicts-by-dict-key/comment-page-1/#comment-45396</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Thu, 14 Aug 2008 00:59:02 +0000</pubDate>
		<guid isPermaLink="false">http://code.pui.ch/2007/07/23/python-sort-a-list-of-dicts-by-dict-key/#comment-45396</guid>
		<description>Thanks for this!

Sean - don&#039;t forget to &quot;import operator&quot;</description>
		<content:encoded><![CDATA[<p>Thanks for this!</p>
<p>Sean &#8211; don&#8217;t forget to &#8220;import operator&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sean</title>
		<link>http://code.pui.ch/2007/07/23/python-sort-a-list-of-dicts-by-dict-key/comment-page-1/#comment-29766</link>
		<dc:creator>sean</dc:creator>
		<pubDate>Tue, 03 Jun 2008 14:56:24 +0000</pubDate>
		<guid isPermaLink="false">http://code.pui.ch/2007/07/23/python-sort-a-list-of-dicts-by-dict-key/#comment-29766</guid>
		<description>sorry, this piece of code doesn&#039;t work for me...
python says

NameError: name &#039;operator&#039; is not defined</description>
		<content:encoded><![CDATA[<p>sorry, this piece of code doesn&#8217;t work for me&#8230;<br />
python says</p>
<p>NameError: name &#8216;operator&#8217; is not defined</p>
]]></content:encoded>
	</item>
</channel>
</rss>
