From aa6753f231b7a5a1b0ff1a664384fa490270315d Mon Sep 17 00:00:00 2001
From: Remi  PLANEL <rplanel@pasteur.fr>
Date: Thu, 21 Mar 2024 15:05:25 +0100
Subject: [PATCH] sort in order to have a correct key

---
 components/content/{MatrixPdock.vue => pdockqMatrix.vue} | 2 +-
 server/plugins/content.ts                                | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
 rename components/content/{MatrixPdock.vue => pdockqMatrix.vue} (98%)

diff --git a/components/content/MatrixPdock.vue b/components/content/pdockqMatrix.vue
similarity index 98%
rename from components/content/MatrixPdock.vue
rename to components/content/pdockqMatrix.vue
index 1ba4d7e6..15599df8 100644
--- a/components/content/MatrixPdock.vue
+++ b/components/content/pdockqMatrix.vue
@@ -70,7 +70,7 @@ const groupedPdocks = computed(() => {
         } else {
             throw createError(`More than 2 proteins in a dimer structure for system ${computedSystem.value} !`)
         }
-    }), d => d.system_genes.join("--"))
+    }), d => d.system_genes.sort().join("--"))
 })
 
 
diff --git a/server/plugins/content.ts b/server/plugins/content.ts
index 4be4cd0a..50a4492a 100644
--- a/server/plugins/content.ts
+++ b/server/plugins/content.ts
@@ -79,7 +79,7 @@ export default defineNitroPlugin((nitroApp) => {
                 if (index !== -1) {
                     file.body.children.splice(index + 1, 0, {
                         type: "element",
-                        tag: 'matrix-pdock',
+                        tag: 'pdockq-matrix',
                         props: {},
                         children: []
                     })
-- 
GitLab