Was trying to implement sorting of a List<string> in a custom way. Implemented the IComparer<string> interface, and it worked well. But after experimenting more with the Sort method of the list, I observed that this also works
list.Sort((s, s1) => {return s.ToLower().CompareTo(s1.ToLower()); });
But the MSDN documentation says nothing about the acceptance of a delegate as a parameter in the Sort method,neither the Intellisense shows an overload of this method which accepts a delegate.
So I would like to ask, that how did it worked?