head または last のソートと使用を報告し、max または min に置換することを提案します。

例:


  Seq("abc", "defg", "h").sorted.head
  Seq("abc", "defg", "h").sortBy(_.length).last

クイックフィックス適用後:


  Seq("abc", "defg", "h").min
  Seq("abc", "defg", "h").maxBy(_.length)