def remove_duplicate_base_on_flowcell_id(list_runs):
    """
    Take a list of runs and remove the duplicated run based on the flowcell id.
    It will remove the oldest run when two are found based on the run date.
    """
    flowcell_to_run = {}
    for run_id in list_runs:
        date, machine, run_number, stage_flowcell = run_id.split('_')
        flowcell = stage_flowcell[1:]
        # If the run id has not been seen or if the date is newer than the previous one then keep it
        if flowcell not in flowcell_to_run or run_id > flowcell_to_run[flowcell]:
            flowcell_to_run[flowcell] = run_id

    return sorted(flowcell_to_run.values())