diff --git a/rasa/core/tracker_store.py b/rasa/core/tracker_store.py index 92d596167195..922623123a07 100644 --- a/rasa/core/tracker_store.py +++ b/rasa/core/tracker_store.py @@ -1325,7 +1325,7 @@ def _event_query( ) ) - return event_query.order_by(self.SQLEvent.id) + return event_query.order_by(self.SQLEvent.timestamp, self.SQLEvent.id) async def save(self, tracker: DialogueStateTracker) -> None: """Update database with events from the current conversation."""