Sorting a tuple in python
<p>How to sort a tuple based on the first value i.e,in dictionary we can use sorted(a.keys())</p>

<p>How to do it in a tuple</p>

<p>if these are the tuple values </p>

<pre><code>   t = [('2010-09-11','somedata',somedata),('2010-06-11','somedata',somedata),('2010-09-12','somedata',somedata)]
</code></pre>

<p>tuple should be sorted based on date,first field</p>
