From 62877fb28a5d2ae743c406109f7c4d3c42f70bf8 Mon Sep 17 00:00:00 2001
From: srosse <stephane.rosse@frentix.com>
Date: Mon, 15 Feb 2021 15:11:40 +0100
Subject: [PATCH] OO-5294: order results of QTI tests in Excel by last name and
 first name

---
 .../org/olat/ims/qti21/manager/AssessmentTestSessionDAO.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/olat/ims/qti21/manager/AssessmentTestSessionDAO.java b/src/main/java/org/olat/ims/qti21/manager/AssessmentTestSessionDAO.java
index 6dc6cf4f41d..f3aab857695 100644
--- a/src/main/java/org/olat/ims/qti21/manager/AssessmentTestSessionDAO.java
+++ b/src/main/java/org/olat/ims/qti21/manager/AssessmentTestSessionDAO.java
@@ -785,7 +785,7 @@ public class AssessmentTestSessionDAO {
 		
 		decorateTestSessionPermission(sb, searchParams);
 		//need to be anonymized
-		sb.append(" order by usr.lastName, testSession.key");
+		sb.append(" order by usr.lastName, usr.firstName, testSession.key");
 		
 		TypedQuery<AssessmentTestSession> query = dbInstance.getCurrentEntityManager()
 				.createQuery(sb.toString(), AssessmentTestSession.class);
-- 
GitLab