From 048b0fef30f080d6f765eb5ae23d9ad6df0e8b8c Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 7 Jul 2020 22:09:22 +0200 Subject: Trying to sort --- src/update-gitjoe.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/update-gitjoe.pl b/src/update-gitjoe.pl index 473d9e8..fdf8a80 100755 --- a/src/update-gitjoe.pl +++ b/src/update-gitjoe.pl @@ -14,12 +14,12 @@ sub get_repos_index { while (my $dir = readdir(DIR)) { next if ($dir =~ m/^\./); next if (!(-e $home_dir . $dir . '/git-daemon-export-ok')); - print $dir; $repos[$i] = $dir; $i += 1; } closedir(DIR); - return @repos; + my @sorted_repos = sort @repos; + return @sorted_repos; } sub stagit_generate { -- cgit v1.2.3