What should I do if my minyan recites Aleinu earlier than my own prayer order requires?
According to the Rebbe's cited responses, one should recite all of Aleinu with the congregation, including both paragraphs, rather than merely bowing. If the congregation recites it before Shir Shel Yom, one should recite all of Aleinu again at the end of one's own prayer. Ledavid Hashem Ori may be recited after Aleinu; the author explains that it is a plea for mercy, whereas Shir Shel Yom belongs to the regular prayer order.
A practical halachic question: the final ruling is for your rabbi.
The source brings differing opinions.
This answer was given to a specific person, not as a general rule.
Quote from the source«ובב' הפעמים יאמרו כולו»
- Author
- הרבי; ברוך יעקובוביץ
- Source
- Nosei Shavui — תפילה — אמירה עם הציבור, p. 3