You have these two examples:
Ne la lui écris pas! (Don't write it to her!)
Ne me le donne pas! (Don't give it to me!)
I see the underline under me le but I don't know how to interpret it. In the first example you have direct object (la) then indirect object (lui). In the second example the reverse: indirect object (me) then direct object (le). Is there a rule here that I'm missing?
Thank you