Historical Rules · 18 February 2022
Rule 509.3a
Official source text from the 18 February 2022 Rules release
During the declare blockers step, if an attacking creature is removed from combat or a spell or ability causes it to stop being blocked by a blocking creature, the attacking creature is removed from all relevant damage assignment orders. The relative order among the remaining attacking creatures is unchanged.