Skip to content

Commit dc7a0be

Browse files
committed
order by rate desc
1 parent f37a3db commit dc7a0be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

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

7777
var indicators = await query.ToListAsync(cancellationToken);
78-
79-
return Result.Success(indicators);
78+
var sorted = indicators.OrderByDescending(x => x.Rate).ToList();
79+
return Result.Success(sorted);
8080
}
8181
catch (Exception e)
8282
{

0 commit comments

Comments
 (0)