Use OrderBy().ThenByDescending()

Proprietary

Replace .OrderBy(a).OrderByDescending(b) with .OrderBy(a).ThenByDescending(b).

OpenRewrite.Recipes.CSharp.CodeQuality.Linq.UseOrderByThenByDescending
mod run . --recipe=OpenRewrite.Recipes.CSharp.CodeQuality.Linq.UseOrderByThenByDescending

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