Hi Max,

I learned that readdir does not guarantee sort order. So in the 
export-import.lib I force a sort. Here is the patch that addresses my 
problem.

> diff -u export-import.lib ../export-import.lib.beforeimportsortfix
--- export-import.lib   2014-08-12 16:12:49.193719569 -0400
+++ ../export-import.lib.beforeimportsortfix    2014-08-12 
15:02:58.355777490 -0400
@@ -661,8 +661,7 @@

   my $directory = $dir."/".$datatype [0]."/".$datatype [1];
   opendir( DIR, $directory );
-  my @dirList =  grep (/^[^\.]/, readdir( DIR ));
-  my @dirList =  sort { $a <=> $b } @dirList;
+  my @dirList = grep (/^[^\.]/, readdir( DIR ));
   closedir( DIR );

   my @result = ();


Dave
------------------------------------------------------------------------------
_______________________________________________
Openca-Users mailing list
Openca-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openca-users

Reply via email to