Skip to content

Commit

Permalink
Order returns on Admin page just by date
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgriff committed May 1, 2024
1 parent 56737a0 commit 099b20f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
</thead>
<tbody class="govuk-table__body">
@{ var previousAccountingDate = DateTime.MinValue; }
@foreach (Return returnForYear in Model.Returns.OrderByDescending(r => r.AccountingDate).ThenBy(r => r.Status).ThenByDescending(r => r.Modified))
@foreach (Return returnForYear in Model.Returns.OrderByDescending(r => r.AccountingDate).ThenByDescending(r => r.Modified))
{
<tr class="govuk-table__row">
@if (returnForYear.AccountingDate == previousAccountingDate)
Expand Down

0 comments on commit 099b20f

Please sign in to comment.