def sort_by_columns(column_indices):
    """
    Return a `sort` command string configured to sort a CSV file by the supplied column
    indices
    """
    sort_keys = ["--key={0},{0}".format(i + 1) for i in column_indices]
    return "sort --field-separator=, {}".format(" ".join(sort_keys))