title: Getting sortBy in haskell to compare the first element
body: <p>Hi so I have this pretty ugly list which looks like <code>[(Int,(String,Char))...]</code> and I want to use the <code>sortBy</code> function in Haskell to sort by the <code>Int</code>.</p>
  
  <p>So far I have, <code>a</code> is the list</p>
  
  <pre><code>sorted = sortBy(comparing fst) a
  </code></pre>
  
  <p>but this gives the good old 'comparing' not in scope error message.
  Is there a way to do what I want?</p>