Dynamic Lambda Expression For Sorting A List / Collection Using Complex Types Without Implementing IComparable

In this article we will see how to sort on complex properties. In our scenario, we have “Employee” entity, where we have a property “Department” which is a complex type. Now let us assume that we are binding the list of employees list along with the department name. Lets see how to sort using Department name without implementing IComparable at the same time using a dynamic string.

Read More