implemented sort by for mongo queries, issue #11