import configparser


def parse_contents(contents):
    """Parse contents of a cinder.conf ini file.

    :param contents: Contents of a cinder.conf file
    :type contents: str
    :returns: Sorted list of (section, volume driver) tuples
    :rtype: list
    """
    p = configparser.ConfigParser()
    tuples = []

    p.read_string(contents)
    for section in p.sections():
        if 'volume_driver' in p[section]:
            tuples.append((section.lower(), p[section]['volume_driver']))
    return sorted(tuples)