This commit is contained in:
naielv
2025-09-09 22:51:21 +02:00
parent 74dc7fe404
commit 9d3d6bc363

View File

@@ -784,7 +784,7 @@ function TS_IndexElement(
} }
// 2. Region (ascending, from SC_Personas if Persona exists) // 2. Region (ascending, from SC_Personas if Persona exists)
const regionA = a.Persona && SC_Personas[a.Persona] ? SC_Personas[a.Persona].Region || "" : a.Region || ""; const regionA = a.Persona && SC_Personas[a.Persona] ? SC_Personas[a.Persona].Region || "" : a.Region || "";
const regionB = b.Persona && SC_Personas[b.Persona] ? SC_Personas[b.Persona].Region || "" : a.Region || ""; const regionB = b.Persona && SC_Personas[b.Persona] ? SC_Personas[b.Persona].Region || "" : b.Region || "";
if (regionA !== regionB) { if (regionA !== regionB) {
return regionA < regionB ? -1 : 1; return regionA < regionB ? -1 : 1;
} }