Skip to content

Instantly share code, notes, and snippets.

@AverageMarcus
Created March 16, 2013 14:27
Show Gist options
  • Save AverageMarcus/5176603 to your computer and use it in GitHub Desktop.
Save AverageMarcus/5176603 to your computer and use it in GitHub Desktop.
Quickly sort a list using Linq
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