Since MongoDB stores timestamps with a resolution of a millisecond, it was possible for a task to be created and updated on the same timestamp, which could cause an impossible ordering of the activities (edit before creation). Sorting by ID instead of creation timestamp fixes this.