r863 - trunk/scripts

lizardo at linuxfromscratch.org lizardo at linuxfromscratch.org
Sat Oct 30 07:54:51 PDT 2004


Author: lizardo
Date: 2004-10-30 08:54:49 -0600 (Sat, 30 Oct 2004)
New Revision: 863

Modified:
   trunk/scripts/svn2html2.pl
Log:
Applied patch to fix sorting problem on svn2html2.pl, thanks to Thomas Pegg.



Modified: trunk/scripts/svn2html2.pl
===================================================================
--- trunk/scripts/svn2html2.pl	2004-10-29 07:21:32 UTC (rev 862)
+++ trunk/scripts/svn2html2.pl	2004-10-30 14:54:49 UTC (rev 863)
@@ -244,7 +244,7 @@
 	print "\t<li>\n\t\t<h3>" . $projects{$project} . "</h3>\n";
 	print "\t\t<ul>\n";
 	# loop "by date"
-	foreach my $date (sort (keys %{$messages{$project}})) {
+	foreach my $date (sort {$b cmp $a} (keys %{$messages{$project}})) {
 	    last if $entry_count++ == $entries_limit;
 	    # loop "by author"
 	    foreach (sort (keys %{$messages{$project}{$date}})) {




More information about the website mailing list