Use ThenBy instead of second OrderBy

Proprietary

Replace items.OrderBy(a).OrderBy(b) with items.OrderBy(a).ThenBy(b). A second OrderBy discards the first sort; ThenBy preserves it as a secondary key.

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

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