[CSHARP-1334] BsonDateTime and BsonTimestamp should no longer sort together Created: 25/Jun/15  Updated: 31/Mar/22

Status: Backlog
Project: C# Driver
Component/s: BSON
Affects Version/s: 2.0.1
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Robert Stam Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Minor Change

 Description   

The server used to sort BsonDateTime and BsonTimestamp together, but no longer does:

http://docs.mongodb.org/manual/reference/bson-types/

It now says: Changed in version 3.0.0: Date objects sort before Timestamp objects. Previously Date and Timestamp objects sorted together.

The CompareTo methods of BsonDateTime and BsonTimestamp in the driver should be updated to match.

This is a minor breaking change to the extent that someone might have been depending on this sort order, but it is more important that the driver and the server have the same sort order.


Generated at Wed Feb 07 21:39:18 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.