根据列表文档
def sorted[B >: A](implicit ord: math.Ordering[B]): List[A]
Sorts this list according to an Ordering.
def sortBy[B](f: (A) ⇒ B)(implicit ord: math.Ordering[B]): List[A]
Sorts this List according to the Ordering which results from transforming an implicitly given Ordering with a transformation function.
你什么时候用一个,什么时候用另一个?一个是否涵盖另一种情况?