The syntax for sorting a list is
lsort listname
Example:
set var {orange blue red green} set var [lsort $var] puts $var
Result:
blue green orange red
Jan 4, 2022 | tcl | 0 comments
The syntax for sorting a list is
lsort listname
Example:
set var {orange blue red green} set var [lsort $var] puts $var
Result:
blue green orange red
Subscribe now to keep reading and get access to the full archive.
Recent Comments