Group toV and fromV by the doc they correspond to