keepachangelog/_versioning.py
def to_sorted_semantic(versions: Iterable[str]) -> List[Tuple[str, dict]]:
    """
    Convert a list of string semantic versions to a sorted list of semantic versions.
    Note: unreleased is not considered as a semantic version and will thus be removed from the resulting versions.

    :param versions: un-ordered list of semantic versions (as string). Can contains unreleased.
    :return: An ordered (first element is the oldest version, last element is the newest (highest)) list of versions.
    Each version is represented as a 2-tuple: first one is the string version, second one is a dictionary containing:
    'major', 'minor', 'patch', 'prerelease', 'buildmetadata' keys.
    """
    return sorted(
        [
            (version, to_semantic(version))
            for version in versions
            if version != "unreleased"
        ],
        key=cmp_to_key(semantic_order),
    )

    Convert a list of string semantic versions to a sorted list of semantic versions.
    Note: unreleased is not considered as a semantic version and will thus be removed from the resulting versions.

    :param versions: un-ordered list of semantic versions (as string). Can contains unreleased.
    :return: An ordered (first element is the oldest version, last element is the newest (highest)) list of versions.
    Each version is represented as a 2-tuple: first one is the string version, second one is a dictionary containing:
    'major', 'minor', 'patch', 'prerelease', 'buildmetadata' keys.
    
Convert a list of string semantic versions to a sorted list of semantic versions.
Note: unreleased is not considered as a semantic version and will thus be removed from the resulting versions.
Convert a list of string semantic versions to a sorted list of semantic versions . Note : unreleased is not considered as a semantic version and will thus be removed from the resulting versions .
def to_sorted_semantic(versions: Iterable[str]) -> List[Tuple[str, dict]]:
    return sorted(
        [
            (version, to_semantic(version))
            for version in versions
            if version != "unreleased"
        ],
        key=cmp_to_key(semantic_order),
    )
def to_sorted_semantic ( versions : Iterable [ str ] ) -> List [ Tuple [ str , dict ] ] : return sorted ( [ ( version , to_semantic ( version ) ) for version in versions if version != "unreleased" ] , key = cmp_to_key ( semantic_order ) , )
Convert a list of string semantic versions to a sorted list of semantic versions.
Convert a list of string semantic versions to a sorted list of semantic versions .
"""
    Convert a list of string semantic versions to a sorted list of semantic versions.
    Note: unreleased is not considered as a semantic version and will thus be removed from the resulting versions.

    :param versions: un-ordered list of semantic versions (as string). Can contains unreleased.
    :return: An ordered (first element is the oldest version, last element is the newest (highest)) list of versions.
    Each version is represented as a 2-tuple: first one is the string version, second one is a dictionary containing:
    'major', 'minor', 'patch', 'prerelease', 'buildmetadata' keys.
    """
An ordered (first element is the oldest version, last element is the newest (highest)) list of versions.
Each version is represented as a 2-tuple: first one is the string version, second one is a dictionary containing:
'major', 'minor', 'patch', 'prerelease', 'buildmetadata' keys.
An ordered ( first element is the oldest version last element is the newest ( highest )) list of versions . Each version is represented as a 2 - tuple : first one is the string version second one is a dictionary containing : ' major ' ' minor ' ' patch ' ' prerelease ' ' buildmetadata ' keys .
versions
Iterable[str]
un-ordered list of semantic versions (as string). Can contains unreleased.
un - ordered list of semantic versions ( as string ) . Can contains unreleased .