From dbbf61be7f5f974e238348751a93146d7524bac9 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Wed, 25 Feb 2015 10:01:59 +0200 Subject: [PATCH] Sort jobs correctly for update_status --- lib/Gruntmaster/Data.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2