From: Martin Mares Date: Mon, 31 Oct 2011 12:44:59 +0000 (+0100) Subject: Jobs should be sorted by their IDs when scanning queue X-Git-Tag: v3.0~44 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=1570da36f54972d0f09c1f0b1edd8ab562575cbc;p=bex.git Jobs should be sorted by their IDs when scanning queue --- diff --git a/lib/BEX/Queue.pm b/lib/BEX/Queue.pm index 04e21f8..84e8590 100644 --- a/lib/BEX/Queue.pm +++ b/lib/BEX/Queue.pm @@ -100,7 +100,7 @@ sub scan($$) { } closedir D; } - return @list; + return sort @list; } sub remove($$) {