Skip to content

Commit ce60adc

Browse files
authored
Add secondary sort to getJourneySteps query (#82281) (#82304)
Fixes ordering bug
1 parent 998e682 commit ce60adc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugins/uptime/server/lib/requests/get_journey_steps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const getJourneySteps: UMElasticsearchQueryFn<GetJourneyStepsParams, Ping
3535
],
3636
},
3737
},
38-
sort: [{ '@timestamp': { order: 'asc' } }],
38+
sort: [{ 'synthetics.step.index': { order: 'asc' } }, { '@timestamp': { order: 'asc' } }],
3939
_source: {
4040
excludes: ['synthetics.blob'],
4141
},

0 commit comments

Comments
 (0)