If you want custom ordering, but don’t want to supply a comparer, you can have it – sql style:
autoList
.OrderBy(a => a.StartsWith("_") ? 2 : 1 )
.ThenBy(a => a);
If you want custom ordering, but don’t want to supply a comparer, you can have it – sql style:
autoList
.OrderBy(a => a.StartsWith("_") ? 2 : 1 )
.ThenBy(a => a);