Replace invocations of Collections#sort(List, Comparator) with List#sort(Comparator)

MSAL

The java.util.Collections#sort(..) implementation defers to java.util.List#sort(Comparator), so call java.util.List#sort(Comparator) directly for better readability.

org.openrewrite.staticanalysis.UseListSort
mod run . --recipe=org.openrewrite.staticanalysis.UseListSort

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.