tuain-ng-forms-lib 13.0.11 → 13.0.12
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.
|
@@ -1416,8 +1416,10 @@ class RecordTable extends FormElement {
|
|
|
1416
1416
|
this.updateVisibleRecords();
|
|
1417
1417
|
}
|
|
1418
1418
|
recordCompare(recordA, recordB, columnCompare, direction) {
|
|
1419
|
-
const
|
|
1420
|
-
const
|
|
1419
|
+
const recordAValue = recordA.getFieldValue(columnCompare);
|
|
1420
|
+
const recordBValue = recordB.getFieldValue(columnCompare);
|
|
1421
|
+
const recordAColumn = isNaN(recordAValue) ? recordAValue.toLocaleLowerCase() : recordAValue;
|
|
1422
|
+
const recordBColumn = isNaN(recordBValue) ? recordBValue.toLocaleLowerCase() : recordBValue;
|
|
1421
1423
|
let result = 0;
|
|
1422
1424
|
if (recordAColumn < recordBColumn) {
|
|
1423
1425
|
result = -1;
|