From 362d7e42bf242cabcf7534b8c0a211a102268116 Mon Sep 17 00:00:00 2001
From: Etienne Loupias <eloupias@grandlyon.com>
Date: Thu, 13 Mar 2025 14:42:00 +0100
Subject: [PATCH] sort

---
 src/orientation/orientation.service.ts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/orientation/orientation.service.ts b/src/orientation/orientation.service.ts
index c7957f40b..f1c3b89f1 100644
--- a/src/orientation/orientation.service.ts
+++ b/src/orientation/orientation.service.ts
@@ -92,6 +92,7 @@ export class OrientationService {
       .populate('structureChoice', 'structureName')
       .populate('socialWorker', 'name surname')
       .populate('orientator', 'name surname')
+      .sort({ createdAt: 1 })
       .exec();
 
     const updatedOrientations = await Promise.all(
-- 
GitLab