tristen/tablesort — pull request #29 by substack (2013-11-02 00:27:34+00:00)
Title: use module.exports where available

Instead of always exporting `Tablesort` onto the window global, this patch exports onto `module.exports` under commonjs environments like [browserify](http://browserify.org). This way people who use browserify can just do `var Tablesort = require('tablesort')` after they do `npm install tablesort`.