I'm a perl beginner and can't see why this sort doesn't work:
The array @vfs is an array of $vf objects which have a numerical property called start. When i loop around the @sorted_vfs array the $vf objects are not in numerical order. thanks a lotmy @sorted_vfs = sort { $a->start() <=> $b->start() } @vfs; foreach my $vf (@sorted_vfs){ print $vf->start(), "\n"; }#end for each
In reply to why doesn't this sort work? by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |