Added in  argument to allow sorting values to be cast to integers before  being sorted.

Created test.html to provide a test case to validate output against.  Also moved `a` and `b` statements to variables to avoid repetition in `each` callback.