xo::OrderedComposite::IndexCompare instproc __compare (private)

 <instance of xo::OrderedComposite::IndexCompare[i]> __compare a b

Defined in /var/www/openacs/packages/xotcl-core/tcl/20-Ordered-Composite-procs.tcl

Compare the dot-separated index values of two children.

Parameters:
a (required)
First child object.
b (required)
Second child object.
Returns:
-1, 0, or 1 for the relative order.

Testcases:
includelet_toc
Source code:
set by ${:__orderby}
set x [$a set $by]
set y [$b set $by]
#:log "--value compare  $x $y] => [:__value_compare $x $y 0]"
return [:__value_compare $x $y 0]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: