BsonDateTime and BsonTimestamp should no longer sort together

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Do
    • Priority: Minor - P4
    • None
    • Affects Version/s: 2.0.1
    • Component/s: BSON
    • None
    • None
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Unassigned
            Reporter:
            Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: