]> mj.ucw.cz Git - bex.git/commitdiff
Jobs should be sorted by their IDs when scanning queue
authorMartin Mares <mj@ucw.cz>
Mon, 31 Oct 2011 12:44:59 +0000 (13:44 +0100)
committerMartin Mares <mj@ucw.cz>
Mon, 31 Oct 2011 12:44:59 +0000 (13:44 +0100)
lib/BEX/Queue.pm

index 04e21f87baae102eeea0127ae40d741cd6d51ea7..84e8590d85a075a1c475a6f595d3588b68d80c6b 100644 (file)
@@ -100,7 +100,7 @@ sub scan($$) {
                }
                closedir D;
        }
-       return @list;
+       return sort @list;
 }
 
 sub remove($$) {