fix sort table