- or download this
@sorted_recs = sort @recs;
- or download this
@srecs = sort {
$b->{AGE} <=> $b->{AGE}
||
$a->{SURNAME} cmp $b->{SURNAME}
} @recs;
- or download this
@sorted_lines = sort @lines;
- or download this
use Unicode::Collate;
@sorted_lines = Unicode::Collate::->new->sort(@lines);
- or download this
use Unicode::Collate;
my $collator = Unicode::Collate::->new();
...
||
$collator->cmp( $a->{SURNAME}, $b->{SURNAME} )
} @recs;
- or download this
use Unicode::Collate;
my $collator = Unicode::Collate::->new();
...
||
$a->{SURNAME_key} cmp $b->{SURNAME_key}
} @recs;
- or download this
Lewis, C.S.
McKinley, Bill
...
Mables, Martha
Machado, José
Macon, Bacon
- or download this
use Unicode::Collate;
@sorted_text = Unicode::Collate::->new->sort(@text);
- or download this
@germans = qw{
Böll
...
Borchert
Bobrowski
};
- or download this
Bobrowski
Bodmer
...
Böhme
Böll
Böttcher
- or download this
Bobrowski
Bodmer
...
Brant
Böhme
Böttcher
- or download this
Bobrowski
Bodmer
...
Brandis
Brant
Böttcher
- or download this
Bobrowski
Bodmer
...
Böttcher
Brandis
Brant
- or download this
use Unicode::Collate;
@sorted_germans = Unicode::Collate::->new->sort(@german_names);
- or download this
Bobrowski
Bodmer
...
Born
Brandis
Brant
- or download this
use Unicode::Collate::Locale;
@sorted_germans = Unicode::Collate::Locale::
->new(locale => "de_phonebook")
->sort(@german_names);