Added support for numerical sorting to initSort.
Merge pull request #292 from Cravid/master

Added support for numerical sorting to initSort.