A late reply because I was gone for a week, but in a case where you might want more than just the top value, such as a top 10, you can use /filter.

Code:
  // Sort table in descending order into a temp file (this can also be done in a custom window)
  hsave -n table file.tmp
  filter -ffcuten 2 32 file.tmp file.tmp

  // Get the Nth top value
  echo -a $hget(table,$gettok($read(file.tmp,N),1,32)).item


Just note that your values should all be numerical for this to work correctly.


Invision Support
#Invision on irc.irchighway.net