Added table sort option