in reply to Re: Sorting an array of anonymous hashes with named hashes using hash value
in thread Sorting an array of anonymous hashes with named hashes using hash value
my @sorted_places = map { $_->[1] } sort { $a->[0] cmp $b->[0] } map { [ ( values %$_ )[0]->{name}, $_ ] } @$places;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Sorting an array of anonymous hashes with named hashes using hash value
by nysus (Parson) on May 07, 2016 at 12:06 UTC | |
by haukex (Archbishop) on May 07, 2016 at 12:22 UTC |