added debug routine for column_sort