Implemented table sorter