How are you suggesting the table would be sorted?
So that if you sorted this table:
$hget(table,1).item = c
$hget(table,2).item = a
$hget(table,3).item = b
It'd become:
$hget(table,1).item = a
$hget(table,2).item = b
$hget(table,3).item = c
Or something else?