Select dynamically how to sort a list(www.clear-lines.com)
submitted by
brandewinder(530) 1 year, 6 months ago
Sorting lists of items using LINQ is straightforward, by applying OrderBy, using whatever item property you want. However, I recently had to solve a slightly more complex problem: providing the user with the ability to select between multiple sorting criteria. How could we implement this without code duplication?
|category: Linq
|Views: 9
tags:
LINQ another
Everyones tags:
Your Tags: