You save it just with data (no names). Forgot to mention that. /help /hsave to get that switch.
Because you're including line numbers (which correspond to the item number in the table), you don't need to save the name of each item, just the data.
It does work really well and I use it in a few scripts. I tried searching for it on the forums, but didn't have luck finding it. It's been posted here numerous times in the past.
Basic idea (fill in missing switches):
alias filterhash {
hsave tablename table.tmp ** Include switch to save data only
filter -ff table.tmp table.tmp ** Include switches to save in decending order and to include original line numbers
echo -a Top: $hget(tablename,$gettok($read(table.tmp,1),1,32)).item
}
That's a basic idea of how it works. You can, of course, include the value in the echo instead of just the item. I just did that to give the barebones view of how it works. If anyone has the help file (or just knows the switches), maybe you can post the "finished" version of this that includes the correct switches. /filter should have -ffeu and something for including line numbers, I believe.