We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7e7aa0 commit aa6da95Copy full SHA for aa6da95
packages/table-core/src/utils/getSortedRowModel.ts
@@ -45,7 +45,7 @@ export function getSortedRowModel<TData extends RowData>(): (
45
const sortData = (rows: Row<TData>[]) => {
46
// This will also perform a stable sorting using the row index
47
// if needed.
48
- const sortedData = [...rows]
+ const sortedData = rows.map(row => ({...row}))
49
50
sortedData.sort((rowA, rowB) => {
51
for (let i = 0; i < availableSorting.length; i += 1) {
0 commit comments