Added custom sorting to table sorter