Provided your list fits into memory, you could put everything you need into a hashofhashes (a hash of arrays would work too) with $km as the key:
my %inarea; if ($km < $distance) { ... $inarea{$km}= {area=>$area, area1=>$area1, hStore=$hStore }; }
Now we can sort it
foreach my $km ( sort keys %inarea ) { print " <table ... $inarea{$km}{area}</A><BR> ...
In reply to Re: Sort output
by jethro
in thread Sort output
by pglinx
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |