-
Type:
Bug
-
Resolution: Works as Designed
-
Priority:
Major - P3
-
None
-
Affects Version/s: 4.4.3
-
Component/s: Aggregation Framework
-
None
-
ALL
-
None
-
3
-
None
-
None
-
None
-
None
-
None
-
None
Source collection with unsorted fields:
Results redirected to another database are not sorted. I suspect it's a bug.
[{'$match': {}}, {'$sort': SON([('chrom', 1), ('start', 1), ('end', 1)])}, {'$out': {'db': 'synth_BED_out', 'coll': 'bed_3_query_res.bed'}}]
Results, obtained through the cursor, are sorted. It's expected by me.
[{'$match': {}}, {'$sort': SON([('chrom', 1), ('start', 1), ('end', 1)])}]