From 3a07d788937dc905d9939307f571fa000b535145 Mon Sep 17 00:00:00 2001 From: Tayyab Fayyaz Janjua Date: Thu, 14 Nov 2024 15:22:13 +0100 Subject: [PATCH] fix(activeApps): respond sorted list of Apps (#1132) Ref: #1131 --- .../PortalBackend.DBAccess/Repositories/OfferRepository.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/portalbackend/PortalBackend.DBAccess/Repositories/OfferRepository.cs b/src/portalbackend/PortalBackend.DBAccess/Repositories/OfferRepository.cs index c64f838efb..4e1e84ed5d 100644 --- a/src/portalbackend/PortalBackend.DBAccess/Repositories/OfferRepository.cs +++ b/src/portalbackend/PortalBackend.DBAccess/Repositories/OfferRepository.cs @@ -68,6 +68,7 @@ public IAsyncEnumerable GetAllActiveAppsAsync(string? languageSho dbContext.Offers.AsNoTracking() .AsSplitQuery() .Where(offer => offer.DateReleased.HasValue && offer.DateReleased <= DateTime.UtcNow && offer.OfferTypeId == OfferTypeId.APP && offer.OfferStatusId == OfferStatusId.ACTIVE) + .OrderByDescending(x => x.DateReleased) .Select(a => new ActiveAppData( a.Id, a.Name,