def sort_keyed_tuple_data(keyed_tuple):
  """
  keyed_tuple:
    (<key>, <data to be sorted (must be a list)>)
  """
  key = keyed_tuple[0]
  data_list = list(keyed_tuple[1])
  data_list.sort() # in-place
  return data_list