Created
March 16, 2013 14:27
-
-
Save AverageMarcus/5176603 to your computer and use it in GitHub Desktop.
Quickly sort a list using Linq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ratings.Sort((x, y) => x.Grade.CompareTo(y.Grade)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment