human
Here's a good function header given the following:
I wrote the below code

    for resource in resources:
        resource.library.init_library_nr()
    def key(resource):
        return (resource.order, resource.library.library_nr, resource.library.name, resource.custom_order, resource.dependency_nr, resource.relpath)
    return sorted(resources, key=key)

What's a good function header?
assistant
#Here's a good function header.

def sort_resources(resources):