small fixes for sorting by combined columns