title: Mongoimport Maintain JSON array order
body: <p>I am importing a json array using mongoimport and it seems to randomly order the keys in an array.</p>
  
  <p>Example:</p>
  
  <pre><code>{ "_id": "21178790T", "properties": { "OBJECTID": 3, "LINK_ID": 4685454, "NAME": "TEST" }}
  </code></pre>
  
  <p>may get inserted in as</p>
  
  <pre><code>{ "_id": "21178790T", "properties": { "LINK_ID": 4685454, "OBJECTID": 3, "NAME": "TEST" }}
  </code></pre>
  
  <p>I don't want the fields inside the array to be reordered upon importing.</p>
  
  <p>Edit: technically I am using</p>
  
  <pre><code>[
   { "_id": "21178790T", "properties": { "OBJECTID": 3, "LINK_ID": 4685454, "NAME": "TEST" }},
   { "_id": "21178791T", "properties": { "OBJECTID": 4, "LINK_ID": 4632354, "NAME": "TEST2" }}
  ]
  </code></pre>
  
  <p>and then using </p>
  
  <pre><code>C:\MongoDB\bin\mongoimport --db dbname -c collectionname --file "input.json" --jsonArray --maintainInsertionOrder
  </code></pre>