Skip to content

Commit

Permalink
Ensure MQs are returned in deterministic order (#1203)
Browse files Browse the repository at this point in the history
  • Loading branch information
gunndabad authored Feb 19, 2024
1 parent eefe987 commit 8c70bfa
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ private Task<MandatoryQualificationInfo[]> 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;
Expand Down

0 comments on commit 8c70bfa

Please sign in to comment.