Mid LINQ

Custom sort by name length, then alphabetically?

Custom sort by name length, then alphabetically

var customSort = employees

.OrderBy(e => e.Name.Length)

.ThenBy(e => e.Name);

Follow :

More from LINQ Tutorial

All questions for this course