Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
@{$self->{queue}} = sort{$a->id cmp $b->id} @{$self->{queue}};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sort on two properties
by kyle (Abbot) on Mar 17, 2009 at 16:35 UTC |