You are comparing values of different BSON types in mongodb. You want to compare from lowest to highest. Which comparison order is used?
MinKey, Null, Numbers,Symbol, String,Object,Array,BinData
MinKey, Null, Numbers,Object,Array,BinData,Symbol, String
Object/Array^inData/Symbol,MinKey, Null, Numbers,String
Objec^Array^inData,Symbol, String,MinKey, Null, Numbers
Submit