title: Sorting from .csv file in Python
body: <p>So I have a csv file that I entered using the following code:</p>
  
  <pre><code>csvdata = np.loadtxt(sys.argv[2],
                       delimiter=',',
                       dtype={
                              'names': ('year', 'month', 'day', 'ItemName'), 
                              'formats': ('i4', 'i4', 'i4', 'S10')
                             }
                      )
  </code></pre>
  
  <p>Now, I wanted to sort this data based on year, month and day. Can someone tell me how to do this????</p>
  
  <p>Csv Data looks like this:</p>
  
  <p>2012,3,6,ABCD<br>
  2012,3,6,XYZA</p>
  
  <p>The thing is, it is currently getting sorted on the name. I wanted it on the date.</p>