in reply to Problem sorting hash & assigning to new hash to send to HTML::Template
Your sample data is setting all the values to 0 and then you are only pushing onto the arrayref when the value is larger than zero. Try setting some of those to something other than 0 and see what you get.
|
|---|