[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Ask a simple question about Tcl



Hi all,
     I would like sort an array by descending in Tcl. For example,
An array like this:
     a1 1 a2 2 a3 8 a4 4 a5 5
I want to get it after sorting by values:
     a3 8 a5 5 a4 4 a2 2 a1 1
How could I do? Sorry for bothering you , all.
Wait for quick response, thank you in advance!

Cheers
Cheng Liang