Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-1298

Comment on: "manual/core/object-id.txt"

      the documentation says:

      Sorting on an _id field that stores ObjectId values is equivalent to sorting by creation time.

      that does not seem to be the case, e.g. I have the following keys (in insertion order), when sorted by _id, they do not reflect insertion time:

      _id insertion_time.to_i
      "50999c8c91e3783e0e000001", 1352244364
      "50999c8c91e3783e0e000002", 1352244364
      "50999c8c91e3783df4000001", 1352244364 <-- _id not larger than pervious _id
      "50999c8c91e3783e08000001", 1352244364
      "50999c8c91e3783e08000002", 1352244364
      "50999c8c91e3783e50000001", 1352244364
      "50999c8d91e3783e0e000003", 1352244365
      "50999c8d91e3783e0e000004", 1352244365
      "50999c8d91e3783e21000001", 1352244365
      "50999c8d91e3783e21000002", 1352244365

      Reporter: Tilo S

            Assignee:
            sam.kleinman Sam Kleinman (Inactive)
            Reporter:
            tilo2 Tilo S
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              11 years, 4 weeks, 4 days ago