summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2010-07-15 01:03:00 -0400
committerJason Woodward2010-07-15 01:03:00 -0400
commit8a370030afeef7a36907a6cfb7e4eca608f16eec (patch)
treef1be2a7578b4a1d2587134174ac3e2327eb8c895
parent458ee1e79075eabd047954e84e6a51dfbdfc3df4 (diff)
downloadJaos-WebApp-8a370030afeef7a36907a6cfb7e4eca608f16eec.tar.gz
sort directory listings in ::Plugin::Static
-rw-r--r--lib/Jaos/WebApp/Plugin/Static.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Jaos/WebApp/Plugin/Static.pm b/lib/Jaos/WebApp/Plugin/Static.pm
index 2d5e715..fe236b8 100644
--- a/lib/Jaos/WebApp/Plugin/Static.pm
+++ b/lib/Jaos/WebApp/Plugin/Static.pm
@@ -31,7 +31,7 @@ sub list
return;
};
- my @files = grep { -f "$path/$_" } grep { ! m/^[\.]+$/ } readdir($dir);
+ my @files = grep { -f "$path/$_" } grep { ! m/^[\.]+$/ } sort readdir($dir);
closedir($dir);
my $listing = '<html><body><ul>';