From f0c80f53e5710bce0b65f91e03cec1bba046645e Mon Sep 17 00:00:00 2001
From: "VKMTHD\\franzjosefkober" <franz.josef.kober@ivt.tugraz.at>
Date: Tue, 15 Feb 2022 16:32:36 +0100
Subject: [PATCH] added sort method for trailer ApplicableVehicleGroups

---
 .../VectoHashing/Resources/XSLT/SortInputData.xslt     | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/VectoCommon/VectoHashing/Resources/XSLT/SortInputData.xslt b/VectoCommon/VectoHashing/Resources/XSLT/SortInputData.xslt
index 37a67ab28b..a07be3ff81 100644
--- a/VectoCommon/VectoHashing/Resources/XSLT/SortInputData.xslt
+++ b/VectoCommon/VectoHashing/Resources/XSLT/SortInputData.xslt
@@ -205,7 +205,15 @@
 			</xsl:for-each>
 		</xsl:if>
 	</xsl:template> 
-	
+		
+	<xsl:template match="*[local-name()='ApplicableVehicleGroups' and ./*[local-name()='ApplicableVehicleGroup']]">
+		<xsl:element name="{local-name()}">
+			<xsl:for-each select="*[local-name()='ApplicableVehicleGroup']">
+				<xsl:sort data-type="text" select="text()" order="ascending"/>
+					<xsl:apply-templates select="."/>
+			</xsl:for-each>
+		</xsl:element>	
+	</xsl:template>
 	
 	<!--
 
-- 
GitLab