-enlilmy %seen; my @sortthetutors = grep { !$seen{$_->{tutorsID}}++ } sort { $a->{tmiles} <=> $b->{tmiles} } @tutorsdata;
In reply to Re: sorting an array of hashes and removing duplicates
by Enlil
in thread sorting an array of hashes and removing duplicates
by jmfees
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |