[ML] Add secondary sort to ML events (#31063)
This commit is contained in:
parent
b422978c0c
commit
16d1f05045
|
@ -93,6 +93,7 @@ public class ScheduledEventsQueryBuilder {
|
|||
|
||||
SearchSourceBuilder searchSourceBuilder = new SearchSourceBuilder();
|
||||
searchSourceBuilder.sort(ScheduledEvent.START_TIME.getPreferredName());
|
||||
searchSourceBuilder.sort(ScheduledEvent.DESCRIPTION.getPreferredName());
|
||||
if (from != null) {
|
||||
searchSourceBuilder.from(from);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue