Pass an Ordering to only one version of groupBy because the Scala
language spec doesn't allow having an optional parameter on all of them
(this was only compiling in Scala 2.10 due to a bug).