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