validator/httpd/cgi-bin check,1.500,1.501

Update of /sources/public/validator/httpd/cgi-bin
In directory hutz:/tmp/cvs-serv9372/httpd/cgi-bin

Modified Files:
	check 
Log Message:
Since we have a number of different sources for errors (xml-wf, parsing, ...)
better make sure that they are sorted before output
(+test case) 



Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.500
retrieving revision 1.501
diff -u -d -r1.500 -r1.501
--- check	18 Apr 2007 06:27:20 -0000	1.500
+++ check	18 Apr 2007 06:32:52 -0000	1.501
@@ -1622,6 +1622,10 @@
       push @{$Errors}, $Errors_bytype{$err_num};
     }
   }
+  else {
+    # sort error by lines
+    @{$Errors} = sort {$a->{line} <=> $b->{line} } @{$Errors};
+  }
   return $number_of_errors, $number_of_warnings, $number_of_info, $Errors;
 }
 

Received on Wednesday, 18 April 2007 06:33:07 UTC