view v compare w   =>   int
v   input view
w   argument view

Compare views v and w, return an integer < 0 if v is less than w, or > 0 if v is greater than w, or 0 if v is equal to w.

Examples:
set x [view A def 1]
set y [view A def {1 2}]
set z [view A def {2 2}]

view $x compare $y
-1
view $y compare $y
0
view $y compare $x
1
view $y compare $z
-1
view $z compare $y
1