diff --git a/Application/Meta/PermissionLevelChangedResourceQueryHelper.cs b/Application/Meta/PermissionLevelChangedResourceQueryHelper.cs index 15482ba8c..8a5b80819 100644 --- a/Application/Meta/PermissionLevelChangedResourceQueryHelper.cs +++ b/Application/Meta/PermissionLevelChangedResourceQueryHelper.cs @@ -27,7 +27,8 @@ public class await using var context = _contextFactory.CreateContext(); var auditEntries = context.EFChangeHistory.Where(change => change.TargetEntityId == query.ClientId) - .Where(change => change.TypeOfChange == EFChangeHistory.ChangeType.Permission); + .Where(change => change.TypeOfChange == EFChangeHistory.ChangeType.Permission) + .OrderByDescending(change => change.TimeChanged); var audits = from change in auditEntries join client in context.Clients