Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-1334

BsonDateTime and BsonTimestamp should no longer sort together

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor - P4 Minor - P4
    • None
    • 2.0.1
    • BSON
    • None
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            robert@mongodb.com Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: