in reply to Sort the hash array

Hi snehit.ar,

I'm not sure to understand what you want exactly, but if you wish to sort the content of the $record array ref based on the value of $timereceived, then you probably need to include the value of $timereceived as an additional field in your records.

In addition, it would be nice if you showed a sample of your input data and of the output of the print Dumper statement. By the way,

print Dumper $records;
is likely to give you a more informative display than
print Dumper @$records;

Replies are listed 'Best First'.
Re^2: Sort the hash array
by snehit.ar (Beadle) on Jul 06, 2017 at 11:04 UTC
      Please put some <code> and </code> tags around both your XML input and your Dumper output.