From 8c70bfa8f48bd3ac783cebbe4535ee07d4b8d906 Mon Sep 17 00:00:00 2001 From: James Gunn Date: Mon, 19 Feb 2024 16:53:11 +0000 Subject: [PATCH] Ensure MQs are returned in deterministic order (#1203) --- .../Pages/Persons/PersonDetail/Qualifications.cshtml.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.SupportUi/Pages/Persons/PersonDetail/Qualifications.cshtml.cs b/TeachingRecordSystem/src/TeachingRecordSystem.SupportUi/Pages/Persons/PersonDetail/Qualifications.cshtml.cs index 571f9e22a..71f48bef9 100644 --- a/TeachingRecordSystem/src/TeachingRecordSystem.SupportUi/Pages/Persons/PersonDetail/Qualifications.cshtml.cs +++ b/TeachingRecordSystem/src/TeachingRecordSystem.SupportUi/Pages/Persons/PersonDetail/Qualifications.cshtml.cs @@ -39,6 +39,7 @@ private Task MapMandatoryQualifications(dfeta_qual var mqs = qualifications .Where(q => q.dfeta_Type == dfeta_qualification_dfeta_Type.MandatoryQualification) .OrderByDescending(q => q.dfeta_CompletionorAwardDate) + .ThenByDescending(q => q.CreatedOn) .Select(async q => { var mqEstablishment = q.dfeta_MQ_MQEstablishmentId is not null ? await referenceDataCache.GetMqEstablishmentById(q.dfeta_MQ_MQEstablishmentId.Id) : null;