def check_output_config(config):
  """ Check that the configuration is valid"""
  ok = True

  if config['output']['sort_column'] not in config['output']['columns']:
    print("Sort column not in output columns list")
    ok = False

  return ok