Remove redundant .slice() before .sort() in renderList
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
6f121e2a90
commit
16861ba88a
1 changed files with 2 additions and 1 deletions
|
|
@ -1526,7 +1526,8 @@ function renderList() {
|
||||||
p.character_name.toLowerCase().startsWith(currentFilter)
|
p.character_name.toLowerCase().startsWith(currentFilter)
|
||||||
);
|
);
|
||||||
// Sort filtered list
|
// Sort filtered list
|
||||||
const sorted = filtered.slice().sort(currentSort.comparator);
|
filtered.sort(currentSort.comparator);
|
||||||
|
const sorted = filtered;
|
||||||
render(sorted);
|
render(sorted);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue