Add support for List.Sort(IComparer).

Source of this change comes from AstrorEnales' change from pull request #239.