MoshiachNow
IS-IT--Management
HI,
I'm trying sort my hash by the second level keys values.
Unsorted line looks like :
for my $j ( sort keys %$jobsDB ) {
So far did not figure out how to do - even read some web threads.
My hash looks like:
$jobsDB->{'job5'}{'endTime'} = 20
$jobsDB->{'job3'}{'endTime'} = 30
$jobsDB->{'job2'}{'endTime'} = 40
I need now to use the first keys of hash (jobx) sorted by values of the second level.
Will appreciate help.
thanks
Long live king Moshiach !
I'm trying sort my hash by the second level keys values.
Unsorted line looks like :
for my $j ( sort keys %$jobsDB ) {
So far did not figure out how to do - even read some web threads.
My hash looks like:
$jobsDB->{'job5'}{'endTime'} = 20
$jobsDB->{'job3'}{'endTime'} = 30
$jobsDB->{'job2'}{'endTime'} = 40
I need now to use the first keys of hash (jobx) sorted by values of the second level.
Will appreciate help.
thanks
Long live king Moshiach !