报告排序和使用 headlast 并建议将其替换为 maxmin

示例:


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

在应用快速修复后:


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