Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/components/src/components/table-stateful/shadow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -410,9 +410,9 @@ export class KolTableStateful implements TableAPI {
return;
}

let sortedData: KoliBriTableDataType[] = this.state._data;
const sortedData: KoliBriTableDataType[] = [...this.state._data];
if (this.sortData.length > 0) {
sortedData = this.state._data.sort((a: KoliBriTableDataType, b: KoliBriTableDataType) => {
sortedData.sort((a: KoliBriTableDataType, b: KoliBriTableDataType) => {
for (let index = 0; index < this.sortData.length; index++) {
const data = this.sortData[index];
const result = data.compareFn(a, b);
Expand Down
Loading