order report servers by most recent report

This commit is contained in:
RaidMax 2022-06-16 10:11:01 -05:00
parent 4534d24fe6
commit 5ab5b73ecf

View File

@ -7,7 +7,7 @@
<div class="content-title">Recent Reports</div>
<div class="text-muted">Last 24 hours</div>
@foreach (var server in Model.Where(server => server.Reports.Any()))
@foreach (var server in Model.Where(server => server.Reports.Any()).OrderByDescending(server => server.Reports.Max(report => report.ReportedOn)))
{
<div class="rounded bg-very-dark-dm bg-light-ex-lm mt-10 mb-10 p-10">
<h5 class="mt-0 mb-5 text-truncate">