input: Write a python function to sort a list of strings in a given column of a tkinter table.
  assert sortByColumn(1) == ['sorted_list_based_on_column_1']
  assert sortByColumn(2) == ['sorted_list_based_on_column_2']
  assert sortByColumn(3) == ['sorted_list_based_on_column_3']
output: def sortByColumn(column_index):
      def sortKey(entry):
          return entry[column_index]
      
      sorted_list = sorted(table_data, key=sortKey)
      return sorted_list