Fixed order problem with MongoDB.
Also went through style with a fine toothed comb.
Merge pull request #3 from GabeLoins/ordering

Fixed order problem with MongoDB.