pub fn sort_ops_for_apply(ops: &[Op]) -> Vec<Op>
order operations for apply (creates/updates first, deletes last).