I'm keeping a lot of data in nsv arrays and need to order them on occasion.
Can this be done? If not, what would be an easy way to do it?
--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] with the
body of SIGNOFF AOLSERVER in
On 2004.03.03, Brad Chick [EMAIL PROTECTED] wrote:
the values in array 'foo' are sums of donations. I need to pull out the
highest 10 values. So I need to have the numeric values sorted descending,
from highest to lowest.
proc sortNsvByValue {array a b} {
expr {[nsv_get $array $a]
Brad: Your spam filter refuses to receive mail from me because I'm
on DSL, sigh. So, I'm sending response via list:
On 2004.03.04, Brad Chick [EMAIL PROTECTED] wrote:
Yes. That works. But that only gives me the top ten values. I then need to
get the keys to those values, because I