Fixed the javascript for sorting the table

Parsed the values to an integer, so the rows will noe be sorted based on
integers and not based on strings.