Remove redundant .slice() before .sort() in renderList

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
erik 2026-02-26 09:31:57 +00:00
parent 6f121e2a90
commit 16861ba88a

View file

@ -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);
} }