title: How to sort Array of tuples (String,String,int)
body: <p>I have an array of tuples. I want to sort the list by first element of tuples.</p>
  
  <p>Example:</p>
  
  <pre><code>var names = [("C","MTS",4),("A","MTS",3),("M","SMTS",1),("N","LEAD",5)];
  </code></pre>
  
  <p>i want to sort them in the below order by first element of tuples</p>
  
  <pre><code>[("A","MTS",3),("C","MTS",4),("M","SMTS",1),("N","LEAD",5)];
  </code></pre>
  
  <p>Please Suggest.</p>