Support passing in 'sort' as both a class property and as an option.

This fixes #2076. I feel like the tests I've written for this could be a little better. I'm open to suggestions!
heh i think it would be odd to do this.. better to just live with underscore :| or perhaps consider using lodash compat build