Replaces sorting and taking head or last element with max or min

Before:

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

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