TCL Sort program without using lsort [closed]

While we won’t give you the answer, we can suggest a few useful things. For example, you compare two elements of a list (at $idx1 and $idx2) with this: string compare [lindex $theList $idx1] [lindex $theList $idx2] And you might use this procedure to swap those two elements: proc swap {nameOfListVar idx1 idx2} { upvar … Read more