Finshed column_sort implementation, need to add comments