Sort by key without losing identity. Equal-key blocks keep their previous relative order because the original position is used as the tie-breaker.