-
Type: Bug
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: 0.6.3
-
Component/s: None
-
None
phongo_query_init() does convert_to_array_ex(&sort); before setting the "sort" option on the query document, which means that sorting on field "0" could result in the sort document serializing as a BSON array instead of an object.
This isn't a problem for the filter, since it's always run through convert_to_object(filter);.