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 :
Custom sort by name length, then alphabetically
var customSort = employees
.OrderBy(e => e.Name.Length)
.ThenBy(e => e.Name);
Follow :