I have the following code:
var emp = new List<Employee>
{
new Employee{ID=1, EmpFname="matt", EmpLName="Cook"},
new Employee{ID=2, EmpFname="mary", EmpLname="John"}
// and so on
};
How do I sort emp by EmpLName and bind it to a GridView? How do I specify asc or desc?
If anyone could explain it using LINQ/Lambda expression, it will be helpful