Input.OrderBy
does not sort the dictionary, it creates a query that returns the items in a specific order.
Perhaps OrderedDictionary gives you what you want.
Or use the Generic SortedDictionary
More Related Contents:
- Remove Item in Dictionary based on Value
- LINQ query to return a Dictionary
- A dictionary where value is an anonymous type in C#
- Map two lists into a dictionary in C#
- How to write this nested foreach loop query in LINQ?
- Linq: GroupBy, Sum and Count
- Update all objects in a collection using LINQ
- Why is a Dictionary “not ordered”?
- LINQ Aggregate algorithm explained
- LINQ Grouping dynamically
- Why does Enumerable.All return true for an empty sequence? [duplicate]
- Static Generic Class as Dictionary
- Am I misunderstanding LINQ to SQL .AsEnumerable()?
- Extension methods syntax vs query syntax
- Conversion from List to array T[]
- LINQ Where Ignore Accentuation and Case
- How do I create an expression tree calling IEnumerable.Any(…)?
- Find all child controls of specific type using Enumerable.OfType() or LINQ
- Dictionary.ContainsKey return False, but a want True
- What is the performance of the Last() extension method for List?
- Should I use two “where” clauses or “&&” in my LINQ query?
- Max or Default?
- Performance of Find() vs. FirstOrDefault() [duplicate]
- How do I do a left outer join with Dynamic Linq?
- Remove item from list based on condition
- LINQ performance FAQ
- Last and LastOrDefault not supported
- How does PredicateBuilder work
- Should the order of LINQ query clauses affect Entity Framework performance?
- Can I use Linq’s Except() with a lambda expression comparer?