IBM interview question

How to reverse sort a html table using javascript