We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 365edc9 + 27ad6df commit d07db79Copy full SHA for d07db79
oscd-supervision.ts
@@ -233,7 +233,9 @@ function getOtherIedControlElements(
233
const iedName = getNameAttribute(ied!);
234
return Array.from(
235
ied.ownerDocument.querySelectorAll(`LN0 > ${controlTag[controlType]}`)
236
- ).filter(cb => getNameAttribute(cb.closest('IED')!) !== iedName);
+ )
237
+ .filter(cb => getNameAttribute(cb.closest('IED')!) !== iedName)
238
+ .sort((a, b) => `${identity(a)}`.localeCompare(`${identity(b)}`));
239
}
240
241
/**
@@ -250,7 +252,7 @@ function getSupervisionLNs(
250
252
251
253
254
ied.querySelectorAll(`LN[lnClass="${supervisionLnType[controlType]}"]`)
- );
255
+ ).sort((a, b) => `${identity(a)}`.localeCompare(`${identity(b)}`));
256
257
258
0 commit comments