fix table sort for multi table