-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: BSON
-
None
When comparing two BsonDocuments using the BsonDocuments.equals() method the order of the fields does not seem to be considered.
Currently {a:1, b:1}.equals({b:1,a:1}) evaluates to true for BsonDocuments. For documents the expected behavior would be that documents are only considered to be same if the field order is the same.