I work hard, so you don't have to

Sorting generic lists csharp


So I spent weeks trying to work out the simplest piece of code ever.
I wrote my own algorithms to sort lists based on a given field etc.
But thanks to Rasesh its all so easy now!
I can see the light!!

            delegate(dataType dt1, dataType dt2)
                return dt1.SortField.CompareTo(dt2.SortField);

Piece of cake!, cheers rasesh

Copyright 2011 CodersAdvocate ©