The textual sequence is stoning → sacrifice (where applicable) → shaving/shortening. Detailed Hanafi law discusses when this order is required, especially for qiran and tamattuʿ pilgrims.
Under a well-known position of Abu Hanifah, disrupting the relevant required order can entail a dam, while the two disciples recognize latitude in some cases. This is explanatory fiqh, not a verbatim line of the current source. A concrete case needs the Hajj mode, excuse, and actual sequence.