I want to sort a list of person say
List persons=new List(); persons.Add(new Person(\"Jon\",\"Bernald\",45000.89)); persons.Add(new P
Do you really need the enums? I don't think that encapsulating your search logic in a method is much clearer or more DRY than just using linq methods:
persons.OrderBy( p => p.FirstName ); persons.OrderByDescending( p => p.Salary);
etc.