From: Marius Gavrilescu Date: Wed, 25 Feb 2015 08:01:59 +0000 (+0200) Subject: Sort jobs correctly for update_status X-Git-Tag: 5999.000_014~66 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=dbbf61be7f5f974e238348751a93146d7524bac9;p=gruntmaster-data.git Sort jobs correctly for update_status --- diff --git a/lib/Gruntmaster/Data.pm b/lib/Gruntmaster/Data.pm index d9f61aa..b4a124c 100644 --- a/lib/Gruntmaster/Data.pm +++ b/lib/Gruntmaster/Data.pm @@ -178,7 +178,7 @@ sub job_entry { sub update_status { my ($self) = @_; - my @jobs = $self->jobs->search({'me.private' => 0}, {cache => 1, prefetch => 'problem'})->all; + my @jobs = $self->jobs->search({'me.private' => 0}, {cache => 1, prefetch => 'problem', order_by => 'me.id'})->all; my %private; my %hash;