fn by_depth(doc: &Document, blocks: HashSet<BlockId>) -> Vec<BlockId> ⓘ
The cascade’s blocks, ancestors first — the order a paste needs, and the reverse of the one a delete emits.