dotnet / dotnet/dotnet-api-docs
Documentation for OrderedDictionary does not specify the sort order
- Dominant language
- C#
- Stars
- 949
- Forks
- 1.7k
- Avg merge
- 3d 27m
- Merged PRs (30d)
- 49
Description
The documentation says:
"The elements of an OrderedDictionary are not sorted by the key"
But it does not specify what it is sorted by then. It may be by the order elements were added to the dictionary, undefined, or something else. I think it is the first (the order of returned keys would be in the order the hash was added to), but it is not specified.
If elements have been removed it may be more complicated.
---
#### Document Details
⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*
* ID: 2cdeef3a-3120-8194-f5cf-a788b258b4f2
* Version Independent ID: 9bb44bbc-fb69-e341-a6d0-963496847058
* Content: [OrderedDictionary Class (System.Collections.Specialized)](https://docs.microsoft.com/en-us/dotnet/api/system.collections.specialized.ordereddictionary?view=netframework-4.7.2)
* Content Source: [xml/System.Collections.Specialized/OrderedDictionary.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.Collections.Specialized/OrderedDictionary.xml)
* Product: **dotnet-api**
* GitHub Login: @mairaw
* Microsoft Alias: **mairaw**
Contributor guide
Assessment
This issue has not been assessed yet.