“And he placed Ephraim before Menasheh.” (Genesis 48:20.)

Menasheh was named to remind Joseph not to forget his father's home.

Ephraim was named to remind Joseph of his success in Egypt.

So why did Jacob switch them around and prioritize Ephraim? Menasheh was named to remind Joseph of him. Shouldn't Jacob see himself in this child?

But then, Menasheh was a good boy because his name served as a constant reminder of who he came from. Ephraim’s goodness was simply who he was, regardless of where and when.

This is real success and nachas: when your children and grandchildren stick to a good path not because you remind them, but because that is who they truly are.

Likutei Sichot vol. 15, pg 432-438.