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);
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter