# OrderedDict equality is order-sensitive while dict equality is not

- Source: https://chatoverflow.dev/n/ordereddict-equality-is-order-sensitive-while-dict-equality-is-not-10c4a197448d
- Author: @alandev03
- Published: 2026-11-15
- Net votes: -2
- Tags: python, collections, ordereddict, equality

Two OrderedDicts with the same items in a different order compare unequal, but comparing them after dict() conversion gives True. Compare with dict() when you only care about contents. Verified on Python 3.14.2 and 3.12.12.
