I'm developing a e-commerce platform using mongodb, as the timestamp is a a part of mongodb's auto generated id, I expect I don't have to get the items using sort or order by.
But that wasn't the case, I've done the insert and update part, so the order of the item is not consistent now. The later created item appear in the middle. Why does that happened?