def dict2list(adict):
    """ Convert a dict to a list sorting by keys.

    Parameters
    ----------
    adict: dict
        a dictionary to be converted.

    Returns
    -------
    out: list
        a sorted list.
    """
    return [adict[k] for k in sorted(adict, reverse=False)]