@esfaenza/es-table 13.1.2 → 13.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1385,8 +1385,15 @@ class ColumnMetadataHandler {
|
|
|
1385
1385
|
this.est.OrderDirectives.push(order);
|
|
1386
1386
|
}
|
|
1387
1387
|
}
|
|
1388
|
-
else
|
|
1388
|
+
else {
|
|
1389
1389
|
this.est.OrderDirectives = orderings;
|
|
1390
|
+
for (let i = 0; i < ths.length; i++) {
|
|
1391
|
+
let th = ths[i];
|
|
1392
|
+
let thId = this.utilities.isEsTh(th) ? th.ID : th.th;
|
|
1393
|
+
if (!this.est.OrderDirectives.find(o => o == thId))
|
|
1394
|
+
this.est.OrderDirectives.push(thId);
|
|
1395
|
+
}
|
|
1396
|
+
}
|
|
1390
1397
|
}
|
|
1391
1398
|
/**
|
|
1392
1399
|
* Applica l'ordine specificato alle varie colonne
|