Did Mary, sister of Martha, anoint Jesus's feet on two different occasions, John 11:1-2 and John 12:2-5? At John 11: 1-2 (NRSVCE) we read:

"Now a certain man was ill, Lazarus of Bethany, the village of Mary and her sister Martha.   Mary was the one who anointed the Lord with perfume and wiped his feet with her hair; her brother Lazarus was ill."

We also read at John 12:2-5(NRSVCE):

" There they gave a dinner for him. Martha served, and Lazarus was one of those at the table with him.   Mary took a pound of costly perfume made of pure nard, anointed Jesus’ feet, and wiped them with her hair. The house was filled with the fragrance of the perfume.  "

It appears that the Evangelist John is presenting in Chapter-11 a 'flash forward'of the event relating to  anointment of the Lord by Mary, which he later describes in detail in Chapter- 12. Or, is it possible that Mary had anointed  Jesus on one different occasion or more, before the death of Lazarus ? My question therefore is: How does the Catholic Church explain the positioning of John 11:2 before John 12:3 ?
Imagine a biography in which a woman writes:


  That summer I stayed a week with June Armstrong.  Her two brothers, Dean and Neil were there too, but we managed to ignore them.  Neil was the one that walked on the moon.


And a few chapters later:


  I sat with June as she stared at the TV, watching her brother Neil as he proclaimed "That's one small step f'ra man, one giant leap for mankind.".


There's nothing confusing about that is there?  There's nothing to make anyone think that Neil walked on the moon when he was a child.

It's no different from what John wrote, so why should the Catholic Church (or anyone else) think there is a problem that needs explaining?