Sort a list using a delegate

To sort a list class using a delegate use the code below:

List list = new List();

list.Sort(delegate(int a, int b)
	return (a - b);
Lastest update in September 2017, inital post in September 2017

Write a comment

I appreciate comments, suggestions, compliments etc. Unfortunately I have no time to reply to them. Useful input will be used for sure!