C# Eval Expression - LINQ Dynamic - ThenBy
LINQ Dynamic ThenBy Examples
C# Dynamic LINQ ThenBy examples using an Expression Evaluator.
ThenBy - Simple
This C# example uses the LINQ ThenBy method with a dynamic expression to sort a list of digits, first by length of their name, and then alphabetically by the name itself.
ThenBy - Comparer
This C# example uses the LINQ ThenBy method with a dynamic expression and a custom comparer to sort first by word length and then by a case-insensitive sort of the words in an array.