=================================================================== RCS file: /cvs/openbsd/OpenBSDTorrents/lib/OpenBSDTorrents.pm,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- openbsd/OpenBSDTorrents/lib/OpenBSDTorrents.pm 2005/03/23 01:32:30 1.3 +++ openbsd/OpenBSDTorrents/lib/OpenBSDTorrents.pm 2005/03/24 19:51:50 1.4 @@ -1,5 +1,5 @@ package OpenBSDTorrents; -#$Id: OpenBSDTorrents.pm,v 1.3 2005/03/23 01:32:30 andrew Exp $ +#$Id: OpenBSDTorrents.pm,v 1.4 2005/03/24 19:51:50 andrew Exp $ use 5.008005; use strict; use warnings; @@ -47,7 +47,7 @@ { my $basedir = shift; opendir DIR, $basedir or die "Couldn't opendir $basedir: $!"; - my @contents = grep { ! /^\.\.$/ } grep { ! /^\.$/ } readdir DIR; + my @contents = sort grep { ! /^\.\.$/ } grep { ! /^\.$/ } readdir DIR; closedir DIR; my @dirs = grep { -d "$basedir/$_" } @contents;