actually sort the mongo config