I believe the sorting is implemented in the Sort internally by Miscrosoft.
We just provide the comparison rule
Consider the case
public class Employee
{
public string Name{get;set;}
public string Age{get;set;}
}
List<employee> employees = new List<employee>();
employees.Sort(delegate(Employee e1, Employee e2) { return e1.age.CompareTo(e2.age); });
employees.Sort((e1, e2) => e1.age.CompareTo(e2.age));
</employee></employee>
So I believe the sorting algo is written deep down in the .NET internals(as far as I know it implements a stable QuickSort algo), what we are providing is the sorting criteria.
My question is can we use any of the above 4 or is there a good, better and best in them
So when you are saying about the sorting algoritm there I can see I have little scope to do anything.
Thanks Edo for your reply and time.
Regards,
Sakshi