Word Order with Cases
When the accusative and dative are both nouns, place the dative before the accusative.
When the accusative and dative are both pronouns, place the accusative before the dative. Remember it this way: Two-year-olds think they are the center of the universe. (Adults, of course, never think that way.) Two-year-olds will say,
“Gib es mir!” It may be selfish, but it is the right word order.
When one case (accusative or genitive) is a noun and one is a pronoun, in the main clause of a declarative sentence, the pronoun always goes next to the second position (the conjugated verb's place).
ihn (the coat)
ihm (the girl)
sie (the wicked queen)