<?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: Advanced sorting: sorting by key</title>
	<atom:link href="http://scienceoss.com/advanced-sorting-sorting-by-key/feed/" rel="self" type="application/rss+xml" />
	<link>http://scienceoss.com/advanced-sorting-sorting-by-key/</link>
	<description>useful tidbits for using open source software in science</description>
	<lastBuildDate>Fri, 11 May 2012 06:21:40 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Daniel</title>
		<link>http://scienceoss.com/advanced-sorting-sorting-by-key/comment-page-1/#comment-1157</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Thu, 19 Jan 2012 02:43:36 +0000</pubDate>
		<guid isPermaLink="false">http://scienceoss.com/advanced-sorting-sorting-by-key/#comment-1157</guid>
		<description>Re:How would you sort by second letter and then the third letter

a better way would do it by
def key(x):
    return (x[1:])

putting the &#039;:&#039; will return the string from the 2nd character on</description>
		<content:encoded><![CDATA[<p>Re:How would you sort by second letter and then the third letter</p>
<p>a better way would do it by<br />
def key(x):<br />
    return (x[1:])</p>
<p>putting the &#8216;:&#8217; will return the string from the 2nd character on</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ryan</title>
		<link>http://scienceoss.com/advanced-sorting-sorting-by-key/comment-page-1/#comment-1071</link>
		<dc:creator>ryan</dc:creator>
		<pubDate>Fri, 14 Jan 2011 15:48:19 +0000</pubDate>
		<guid isPermaLink="false">http://scienceoss.com/advanced-sorting-sorting-by-key/#comment-1071</guid>
		<description>All you need to do is have your key function return a tuple of the second and third letter:

[python]
def key(x):
    return (x[1], x[2])
[/python]</description>
		<content:encoded><![CDATA[<p>All you need to do is have your key function return a tuple of the second and third letter:</p>
<pre class="brush: python; title: ; notranslate">
def key(x):
    return (x[1], x[2])
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://scienceoss.com/advanced-sorting-sorting-by-key/comment-page-1/#comment-1067</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Wed, 15 Dec 2010 18:38:12 +0000</pubDate>
		<guid isPermaLink="false">http://scienceoss.com/advanced-sorting-sorting-by-key/#comment-1067</guid>
		<description>How would you sort by second letter and then the third letter</description>
		<content:encoded><![CDATA[<p>How would you sort by second letter and then the third letter</p>
]]></content:encoded>
	</item>
</channel>
</rss>

