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
Related Contents:
- Remove Item in Dictionary based on Value
- Map two lists into a dictionary in C#
- LINQ query to return a Dictionary
- A dictionary where value is an anonymous type in C#
- Group By Multiple Columns
- How do you sort a dictionary by value?
- When to use .First and when to use .FirstOrDefault with LINQ?
- Using LINQ to remove elements from a List
- The order of elements in Dictionary
- When to use Cast() and Oftype() in Linq
- Serialize Class containing Dictionary member
- How to get index using LINQ? [duplicate]
- How do I apply OrderBy on an IQueryable using a string column name within a generic extension method?
- Intersection of multiple lists with IEnumerable.Intersect()
- How do I concatenate two arrays in C#?
- Convert string[] to int[] in one line of code using LINQ
- LINQ – Left Join, Group By, and Count
- LINQ Aggregate algorithm explained
- Why is .Contains slow? Most efficient way to get multiple entities by primary key?
- Mapping object to dictionary and vice versa
- LINQ: Not Any vs All Don’t
- How to check if IEnumerable is null or empty?
- Why does Enumerable.All return true for an empty sequence? [duplicate]
- Two-way / bidirectional Dictionary in C#?
- Should I use two “where” clauses or “&&” in my LINQ query?
- Static Generic Class as Dictionary
- Filter/Search using Multiple Fields – ASP.NET MVC
- Difference between Lookup() and Dictionary(Of list())
- .NET ObservableDictionary
- Convert Dictionary To Anonymous Object?
- Am I misunderstanding LINQ to SQL .AsEnumerable()?
- Conversion from List to array T[]
- Extension methods syntax vs query syntax
- IEqualityComparer for SequenceEqual
- Enumerating through an object’s properties (string) in C#
- Using Linq Except not Working as I Thought
- Operation could destabilize the runtime?
- Can I split an IEnumerable into two by a boolean criteria without two queries?
- Get List element position in c# using LINQ
- Can I LINQ a JSON?
- Custom sort logic in OrderBy using LINQ
- How do I create an expression tree calling IEnumerable.Any(…)?
- Convert list to dictionary using linq and not worrying about duplicates
- How to convert object to Dictionary in C#?
- Resolving extension methods/LINQ ambiguity
- Dictionary.ContainsKey return False, but a want True
- LINQ performance FAQ
- Construct LambdaExpression for nested property from string
- Last and LastOrDefault not supported
- lookup vs. groupby [duplicate]