Scala ordering API uses implicit objects. e.g.:
def msort[T](xs: List[T])(implicit ord: Ordering) = { ...}
Java uses Comparable interface for the same purpose.
public static <T extends Comparable<? super T>> void sort(List<T> list) { ... }
Why does Scala prefer implicit types over extending a trait? What are the benefits of implicit parameters?