This page contains two similar tables than can be dynamically sorted in a number of ways just by clicking on a column header. To reverse the sort order for a given column, click on it twice in a row.
The table's appearance and some of its content changes with each sort as well. In addition to style changes, the Rank column is updated to match the sorted column.
Use your browser's View Source
option to see the full source
code.