fix crash in table sorter when using defaultOrdering