It is permissible to offer the sacrifice before stoning the Jamrah, or to shave before offering the sacrifice or stoning the Jamrah, or to perform Tawaf before any of them Sahih Muslim 1306 g

Arabic hadith text
وَحَدَّثَنَا ابْنُ أَبِي عُمَرَ، وَعَبْدُ بْنُ حُمَيْدٍ، عَنْ عَبْدِ الرَّزَّاقِ، عَنْ مَعْمَرٍ، عَنِ الزُّهْرِيِّ، بِهَذَا الإِسْنَادِ رَأَيْتُ رَسُولَ اللَّهِ صلى الله عليه وسلم عَلَى نَاقَةٍ بِمِنًى فَجَاءَهُ رَجُلٌ ‏.‏ بِمَعْنَى حَدِيثِ ابْنِ عُيَيْنَةَ
Translation
This hadith has been narrated on the authority of Zuhri with the same chain of transmitters (and the words are)

I saw Allah's Messenger (ﷺ) on the back of the camel at Mina, and a person came to him," and the rest of the hadith Is like that transmitted by Ibn 'Uyaina.