Skip to content
Snippets Groups Projects
Commit 1e9c032f authored by Tibo's avatar Tibo
Browse files

sort and show reports by decreasing status, and then by name

parent 6484b635
No related branches found
No related tags found
No related merge requests found
Pipeline #14468 passed
......@@ -41,7 +41,11 @@ class ReportSummary extends Model
*/
public function reports() : DatabaseCollection
{
return Report::find($this->reports);
// this will show errors first, then warnings etc.
// and sorted by title
return Report::find($this->reports)
->sortBy("title")
->sortByDesc("status_code");
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment