collection.insert(json("a:3, _id:3"));
collection.insert(json("a:4, _id:4"));
@SuppressWarnings("resource")
DBCursor cursor = collection.find().sort(json("a: -1"));
assertThat(cursor.toArray()).containsExactly(json("a:4, _id:4"), json("a:3, _id:3"), json("a:2, _id:2"),
json("a:1, _id:1"), json("_id: 5"));
}
@Test
public void testSortByEmbeddedKey() {