def METHOD_NAME(
    configuration_files: List[str], api_client: airbyte_api_client.ApiClient, workspace_id: str
) -> List[BaseResource]:
    """Create resource objects with factory and sort according to apply priority.
    Args:
        configuration_files (List[str]): List of YAML configuration files.
        api_client (airbyte_api_client.ApiClient): the Airbyte API client.
        workspace_id (str): current Airbyte workspace id.
    Returns:
        List[BaseResource]: Resources sorted according to their apply priority.
    """
    all_resources = [resource_factory(api_client, workspace_id, path) for path in configuration_files]
    return sorted(all_resources, key=lambda resource: resource.APPLY_PRIORITY)