Hi

I have the following code in tcl and I am new to this language.
Say the following lines get inserted
reset
tW
failure

// used to insert the lines above
foreach f [$par listof names] {
  set sizeNum($f) $sIdx             
  incr sIdx
}

However, this following code prints out the lines in a different order
failure
reset
tW

set sizes [array names sizeNum]
foreach s $sizes {
set sIdx $sizeNum($s)
    addlines "[$s cget -name]"
}

Is there a way I can find out what hashing function it uses to
print out the lines in the order it is?

Thanks

David