Skip to content

Commit 257904f

Browse files
authored
Merge pull request #12 from palladiumkenya/feature/data
sort order combination
2 parents 56d6dfd + de55362 commit 257904f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/LiveDWAPI.Application/Cs/Queries/GetRealtimeFilteredQuery.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,11 @@ public async Task<Result<List<FactRealtimeIndicator>>> Handle(GetRealtimeFiltere
7575
query = query.Take(request.Filter.Limit);
7676

7777
var indicators = await query.ToListAsync(cancellationToken);
78-
var sorted = indicators.OrderByDescending(x => x.Rate).ToList();
78+
var sorted = indicators
79+
.OrderByDescending(x => x.Rate)
80+
.ThenByDescending(x=>x.Numerator)
81+
.ThenBy(x=>x.FacilityName)
82+
.ToList();
7983
return Result.Success(sorted);
8084
}
8185
catch (Exception e)

0 commit comments

Comments
 (0)