In an application I'm making in Ruby, I store objects in a MongoDB database using MongoMapper.
Among other things, I need to store an array that is a property of a document:
{String => { [Strings] }
Or to put it in a more Javascript style notation:
{
"fooArray" [
"one",
"two",
"three"
]
}
Is the order of this array guaranteed to be preserved, or must I do something else to guarantee order? After a few tests it seems to work, but I need to be sure.