in reply to Sorting HOH

Are you wanting your HOH to be modified? Or just to output all but the highest three values? Is your required output actually the literal text '$data{1}{b}', etc., or 5, 10, 15?

Update: I see other's interpreted "top" as meaning lowest; I was somehow stuck on having "top" mean highest, and had to somewhat unnaturally interpret "take" as "exclude" :)