Sometime I need resort the ArrayList or List<T> in my code. I am too lazy to write a piece of code to implement IComparer. When I search through google, I found there is a very elegant way to do the sorting:

I have used code like this many times, but actually I didn't really understand why code can be wrote like this. Those are some different way to sorting in different version of .net frameworks,and those articles helping me to understand the sorting code better.