Skip to content

Commit

Permalink
order the filtered results by time
Browse files Browse the repository at this point in the history
  • Loading branch information
MRoehricht committed Aug 21, 2023
1 parent fd58762 commit 30fa755
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SEVEN.MissionControl.Api/Features/MeasurementEndpoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ private static async Task<IResult> GetFilteredMeasurements(MeasurementFilter? fi
if (filter.ReduceData.HasValue && filter.ReduceData.Value)
measurements = ReduceDataService.ReduceData(measurements);

return Results.Ok(measurements);
return Results.Ok(measurements.OrderBy(_ => _.Time));
}

private static async Task<IResult> CreateMessages(string? message, IMeasurementRepository repository)
Expand Down

0 comments on commit 30fa755

Please sign in to comment.