table sort issue fix