tablelist::sortByColumn
- Sort the items of a tablelist
widget based on one of its columns
tablelist::sortByColumn pathName columnIndex
pathName
based on the elements of the column
specified by columnIndex
. This is done by
invoking the sortbycolumn
subcommand of the Tcl command associated with the given tablelist
widget. If the items were last sorted in increasing order, based
on the same column given by columnIndex
, and no
subsequent invocation of the resetsortinfo
subcommand was made, then the last argument passed to
sortbycolumn
will be
-decreasing
, otherwise
-increasing
. The command returns the
corresponding sorting order, as decreasing
or
increasing
.
tablelist::sortByColumn
is usually specified as
the value of the -labelcommand
configuration option for a tablelist widget.