i am not sure what that syntax is and such, but in general:
- documents in mongodb collections are not ordered (much like relational tables). so if you have documents to keep in order, you'll need to either sort when you execute the query (e.g. sort( { _id : 1 } ) or perhaps use a capped collection, as capped collections are special and order-maintaining (albeit they have certain restrictions).
- inside a BSON document, fields within documents are generally kept in order by the server, with some exceptoins. however a driver or object mapper might not maintain order, so it will depend on the client side tooling also
- the values within an array inside a BSON document are kept in order (arrays are arrays, not "sets")