Details
-
Bug
-
Resolution: Works as Designed
-
Major - P3
-
None
-
4.4.0-rc14
-
None
-
Query
-
ALL
-
Description
Given query in mongodb shell:
db.collection.find({ userId: 'userId', startDate: { $gt: ISODate("2020-07-01") } }, { time: { $divide: [{ $subtract: ['$endDate', '$startDate'] }, 3600000] } }).sort({ time: -1 })
|
sort does not affect result, always get the same no matter use
sort({ time: 1})
|
sort({ time -1 })
|
Attachments
Issue Links
- related to
-
DOCS-13808 [Server] Make documentation about order of operations in find() more clear
-
- Backlog
-