Adding numeric sort function

Fixing #15 and starting on #14