variety/variety — pull request #31 by nitindhar7 (2014-02-21 05:23:10+00:00)
Title: Made sort configurable with the original value as the default. Now it ca...

...n be passed in on the command line similar to 'limit'. Example:

mongo localhost:27017/dbname --eval "var collection = 'users', limit = 1000, sort = {'created_at':-1}" variety.js

Could be useful to run the analysis on only the most recent 'n' records.