From 16861ba88a11b3747b23b728a3efc1854dffdaee Mon Sep 17 00:00:00 2001 From: erik Date: Thu, 26 Feb 2026 09:31:57 +0000 Subject: [PATCH] Remove redundant .slice() before .sort() in renderList Co-Authored-By: Claude Opus 4.6 --- static/script.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/script.js b/static/script.js index e5c595e4..651a4375 100644 --- a/static/script.js +++ b/static/script.js @@ -1526,7 +1526,8 @@ function renderList() { p.character_name.toLowerCase().startsWith(currentFilter) ); // Sort filtered list - const sorted = filtered.slice().sort(currentSort.comparator); + filtered.sort(currentSort.comparator); + const sorted = filtered; render(sorted); }