updated sort by on table