def METHOD_NAME (manager, sources, prop_set, result):
    used_libraries = []
    deps = prop_set.dependency ()
    sources.extend(d.value for d in deps)
    sources = sequence.unique(sources)
    for l in sources:
        if l.type () and type.is_derived (l.type (), 'LIB'):
            used_libraries.append (l)
    created_libraries = []
    for l in result:
        if l.type () and type.is_derived (l.type (), 'LIB'):
            created_libraries.append (l)
    created_libraries = set.difference (created_libraries, used_libraries)
    set_library_order_aux (created_libraries, used_libraries)