package SORT; use X; require Exporter; @ISA = qw(Exporter); @EXPORT = qw(sorted); sub by_id { $a->id <=> $b->id; } sub sorted { sort by_id @_ } 1;
In reply to Re: OO and sorting
by bikeNomad
in thread OO and sorting
by artist
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |