@tanstack/react-table 8.10.3 → 8.10.4
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.
|
@@ -3482,7 +3482,9 @@
|
|
|
3482
3482
|
const sortData = rows => {
|
|
3483
3483
|
// This will also perform a stable sorting using the row index
|
|
3484
3484
|
// if needed.
|
|
3485
|
-
const sortedData =
|
|
3485
|
+
const sortedData = rows.map(row => ({
|
|
3486
|
+
...row
|
|
3487
|
+
}));
|
|
3486
3488
|
sortedData.sort((rowA, rowB) => {
|
|
3487
3489
|
for (let i = 0; i < availableSorting.length; i += 1) {
|
|
3488
3490
|
var _sortEntry$desc;
|