doc::util::sort_see (private)

 doc::util::sort_see element1 element2

Defined in packages/acs-templating/tcl/doc-tcl-procs.tcl

used to sort the see list, which has structure [name {name} type {type} url {url}]

Parameters:
element1 (required)
the first of the two list elements to be compared
element2 (required)
{default actually, no default value for this because it is required} the second of the two elements to be compared

Partial Call Graph (max 5 caller/called nodes):
%3

Testcases:
No testcase defined.
Source code:

    if { [lindex $element1 3 ] < [lindex $element2 3] } {
        return -1
    }

    if { [lindex $element1 3 ] > [lindex $element2 3] } {
        return 1
    }

    return [string compare -nocase [lindex $element1 1] [lindex $element2 1]]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: