MDL-30700 tablelib: Fixed get_sort_for_table to work with text sorting columns for...