Sort vectors on row, size and column or column, size and row depending
on graph or witness perspective.