List<Employee> employeeList = new List<Employee>() { new Employee { Name = "N1", Salary = "N1-1" } , ...
SortSalary sortSal = new SortSalary(); employeeList.Sort(sortSal);
}
class SortSalary: IComparer<Employee> { #region IComparer<Employee> Members
public int Compare(Employee x, Employee y) { return string.Compare(x.Salary, y.Salary); }
#endregion }