It was that Mary who afterward anointed, &c. She was more known than her elder sister Martha, and as such is named before her.
Related Commentaries of John 11:2
John 11:2
2 (It was that Mary which anointed the Lord with ointment, and wiped his feet with her hair, whose brother Lazarus was sick.)