view v remap map   =>   view
v   input view
map   row map

Remap returns a view containing the rows of v in the order indicated by map, which must be a column of integers. The size of the result is the same as the number of entries in map.

Examples:
set v [view A def {a b c}]

view $v remap {1 0 2}
A
0b
1a
2c
view $v remap {1 2 2 1}
A
0b
1c
2c
3b