added pdf for assingment 9
table-sort.html added (exercise 1)
added logic for sorting the table
cleaned some whitespaces and reordered sorting conditions