Switching to `Ordering::then_with` makes control-flow less complicated, and there is no need to use `partial_cmp` here.
{Idx, IndexVec, IndexSlice}