def _split_dict(dic):
    '''Split dict into sorted keys and values
    >>> _split_dict({'b': 2, 'a': 1})
    (['a', 'b'], [1, 2])
    '''
    keys = sorted(dic.keys())
    return keys, [dic[k] for k in keys]