Sorting of table columns