title: In Scala, how to use Ordering[T] with List.min or List.max and keep code readable
body: <p>In Scala 2.8, I had a need to call List.min and provide my own compare function to get the value based on the second element of a Tuple2. I had to write this kind of code:</p>
  
  <pre><code>val list = ("a", 5) :: ("b", 3) :: ("c", 2) :: Nil
  
  list.min( new Ordering[Tuple2[String,Int]] { 
    def compare(x:Tuple2[String,Int],y:Tuple2[String,Int]): Int = x._2 compare y._2 
  } )
  </code></pre>
  
  <p>Is there a way to make this more readable or to create an Ordering out of an anonymous function like you can do with <code>list.sortBy(_._2)</code>?</p>