Implemented sortable. Refactored table.