Sort class list

PHOTO EMBED

Mon May 23 2022 15:18:13 GMT+0000 (UTC)

Saved by @Tulza #c#

var simpleList = new List<ObjectName>();
// Order by a property
list.OrderBy(o => o.PropertyName);
// Order by multiple property
list.OrderBy(o => o.PropertyName).ThenBy(o => o.AnotherProperty);
// Same but descending
list.OrderByDescending(o => o.PropertyName).ThenByDescending(o => o.AnotherProperty);
content_copyCOPY

this can work when sorting a muti variable class