Use OrderBy().ThenByDescending()
ProprietaryReplace .OrderBy(a).OrderByDescending(b) with .OrderBy(a).ThenByDescending(b).
OpenRewrite. Recipes. CSharp. CodeQuality. Linq. UseOrderByThenByDescendingmod run . --recipe= OpenRewrite. Recipes. CSharp. CodeQuality. Linq. UseOrderByThenByDescendingInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.