@tanstack/svelte-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.
|
@@ -3462,7 +3462,9 @@
|
|
|
3462
3462
|
const sortData = rows => {
|
|
3463
3463
|
// This will also perform a stable sorting using the row index
|
|
3464
3464
|
// if needed.
|
|
3465
|
-
const sortedData =
|
|
3465
|
+
const sortedData = rows.map(row => ({
|
|
3466
|
+
...row
|
|
3467
|
+
}));
|
|
3466
3468
|
sortedData.sort((rowA, rowB) => {
|
|
3467
3469
|
for (let i = 0; i < availableSorting.length; i += 1) {
|
|
3468
3470
|
var _sortEntry$desc;
|