@apexcura/ui-components 0.0.11-Beta200 → 0.0.11-Beta201

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.
package/dist/index.js CHANGED
@@ -632,11 +632,14 @@ var TableElement = (props) => {
632
632
  dataIndex: "#",
633
633
  key: "#"
634
634
  },
635
- ...thead.map((col) => ({
635
+ ...thead.map((col, ind) => ({
636
636
  title: col.label,
637
637
  dataIndex: col.name,
638
638
  key: col.key,
639
- sorter: (a, b) => a[col.key] - b[col.key]
639
+ sorter: {
640
+ compare: (a, b) => a[col.key] - b[col.key],
641
+ multiple: thead.length - ind
642
+ }
640
643
  }))
641
644
  ];
642
645
  }
package/dist/index.mjs CHANGED
@@ -581,11 +581,14 @@ var TableElement = (props) => {
581
581
  dataIndex: "#",
582
582
  key: "#"
583
583
  },
584
- ...thead.map((col) => ({
584
+ ...thead.map((col, ind) => ({
585
585
  title: col.label,
586
586
  dataIndex: col.name,
587
587
  key: col.key,
588
- sorter: (a, b) => a[col.key] - b[col.key]
588
+ sorter: {
589
+ compare: (a, b) => a[col.key] - b[col.key],
590
+ multiple: thead.length - ind
591
+ }
589
592
  }))
590
593
  ];
591
594
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.11-Beta200",
3
+ "version": "0.0.11-Beta201",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",