Pattern 1 - there are two objects (accusative/direct and dative/indirect):
if the accusative object (direct object) is le, la, les, the dative (indirect) object me, te, se, nous or vous is before the accusative. If the indirect object is lui or leur, they are put after the accusative. The pronominal adverbs are always put behind the objects.