def sample_builder(samples):
    """
    Given a dictionary with value: count pairs, build a list.
    """
    data = []
    for key in samples:
        data.extend([key] * samples[key])
    data.sort()
    return data