Remove useless OrderBy call
ProprietaryReplace .OrderBy(a).OrderBy(b) with .OrderBy(b). A second OrderBy completely replaces the first sort, making the first call useless.
OpenRewrite. Recipes. CSharp. CodeQuality. Linq. RemoveUselessOrderBymod run . --recipe= OpenRewrite. Recipes. CSharp. CodeQuality. Linq. RemoveUselessOrderByInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.