xo::OrderedComposite instproc __compare (private)

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

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

Compare two children by the configured sort attribute.

Parameters:
a (required)
First child object.
b (required)
Second child object.
Returns:
A negative number, zero, or a positive number for sort order.

Testcases:
includelet_childresources
Source code:
set by ${:__orderby}
set x [$a set $by]
set y [$b set $by]
return [ns_strcoll $x $y]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: