diff --git a/backend/src/database/results.py b/backend/src/database/results.py index 585c7484..3bc8196e 100644 --- a/backend/src/database/results.py +++ b/backend/src/database/results.py @@ -69,7 +69,7 @@ async def get_by_competitor(competitor: int) -> Iterable[ResultWithEventName]: *results_fields, ResultTable.event.name.as_alias("event_name") ) .where(ResultTable.competitor == competitor) - .order_by(ResultTable.event.date) + .order_by(ResultTable.event.date, ResultTable.id) .run() )