Copying these lines into the shell should do the right thing:
db.cities.find(
).sort(
). limit(5).forEach(printjson);