Skip to content
Snippets Groups Projects
Commit af03e291 authored by Jessica Severin's avatar Jessica Severin
Browse files

changed fetch_by_status to order returned results so the stats which have

the most time since last update are at the top of the returned list
parent c05ce49d
No related branches found
No related tags found
No related merge requests found
......@@ -107,8 +107,12 @@ sub fetch_by_status {
$addComma = 1;
}
$constraint .= ")";
return $self->_generic_fetch($constraint);
$self->_final_clause("ORDER BY last_update");
my $results = $self->_generic_fetch($constraint);
$self->_final_clause(""); #reset final clause for other fetches
return $results;
}
#
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment