Prevent lexicographical sorting, see issue #20

The native Javascript `sort` function sorts numbers lexicographically instead of in numerical order. See issue #20 for an example.
Merge pull request #33 from peterolson/patch-1

Prevent lexicographical sorting, see issue #20