apidoc::ad_sort_by_second_string_proc (private)

 apidoc::ad_sort_by_second_string_proc l1 l2

Defined in packages/acs-api-browser/tcl/acs-api-documentation-procs.tcl

basically a -1,0,1 result comparing the second element of the list inputs then the first (both strings)

Parameters:
l1 (required)
l2 (required)

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

Testcases:
No testcase defined.
Source code:
        if {[lindex $l1 1] eq [lindex $l2 1]} {
            return [string compare [lindex $l1 0] [lindex $l2 0]]
        } else {
            return [string compare [lindex $l1 1] [lindex $l2 1]]
        }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: