Add sort descending to table.js and cleanup trailing spaces