Is is possible to use LINQ to sort groups using a different orderby clause? For example in one group I want to sort the results in ascending order and then in a different group sort in descending order by using a property that would determine the sort direction.
I can do this by looping through the groups and apply sorting on the group, however my question is whether this can be done as part of the original LINQ query? Would there be any negative performance implications of doing this?