linq sort array by descending
array = array.OrderByDescending(c => c).ToArray();
linq sort array by descending
array = array.OrderByDescending(c => c).ToArray();
linq when name then orderby
var res = _repository.GetActiveDepartmentGroupsWithDepartments()
.SelectMany(c => c.Departments, (c,d) => new { c, d })
.OrderBy(x => x.c.DepartmentGroupName)
.ThenBy(x => x.d.DepartmentName)
.Select(x => x.d);
linq dynamic order by descending
myDataSource.OrderBy(columnName + " descending");
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us