normalize types before table-sort