I am writing a list sorting extension method.
My input is the list and a string with property name and sort direction.
This string can have multiple properties like so:
"Name ASC, Date DESC" etc.
I already implemented the string parsing and used reflection to get the property itself from the string, but what I am stuck on now is how do I dynamically chain the orderby methods.
Is there any way to build this dynamically?