The tablelist::sortByColumn Command

by

Csaba Nemethi

csaba.nemethi@t-online.de


NAME
tablelist::sortByColumn - Sort the items of a tablelist widget based on one of its columns

SYNOPSIS

tablelist::sortByColumn pathName columnIndex

DESCRIPTION
This command sorts the items of the tablelist widget 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.

KEYWORDS
tablelist, sort, column, widget

Start page