pub fn cmp_path(a: &[Seg], b: &[Seg]) -> Ordering
Canonical path order (§7.2): segment-wise, indices numerically, names and keys lexicographically, a prefix first.