def _get_versions(json_entry):
    """
    Return version labels ranked from the most recent to the earliest one
    """
    versions = []
    if "versions" in json_entry:
        for version in json_entry["versions"]:
            # time indicated by "created" attribute
            versions.insert(0, version["version"])

    if len(versions) == 0:
        # default value
        versions.append("v1")
    return versions