in reply to Re: Advance Sorting
in thread Advance Sorting
I see thanks for that. I have a list of IDs with a corresponding score and location values. I want to order the IDs based on highest score associated with them. I also want the IDs to be grouped together. When I use array of hashes like below how would I order it then?
push @entry, { ID => 'BLA', Score => 5, Location => '1-10', }; push @entry, { ID => 'TRA', Score => 15, Location => '7-15', }; push @entry, { ID => 'BLA', Score => 10, Location => '2-10', }; Output; TRA 15 7-15 BLA 10 2-10 BLA 5, 1-10
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Advance Sorting
by LanX (Saint) on Jun 03, 2014 at 16:54 UTC | |
by Anonymous Monk on Jun 03, 2014 at 17:03 UTC | |
by LanX (Saint) on Jun 03, 2014 at 17:09 UTC |