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 need to go pull some other data
> with those keys.
set items [list]
foreach {key value} [nsv_array get foo] {
lappend items [list $key $value]
}
set topTen [lrange [lsort -decreasing -index 1 $items] 0 9]
-- Dossy
--
Dossy Shiobara mail: [EMAIL PROTECTED]
Panoptic Computer Network web: http://www.panoptic.com/
"He realized the fastest way to change is to laugh at your own
folly -- then you can let go and quickly move on." (p. 70)
--
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 the email message. You can leave the Subject: field of
your email blank.