From 8ddbdecd16077e3ebed875b033e0e36128ea278d Mon Sep 17 00:00:00 2001 From: Jimmy Wan Date: Thu, 1 May 2025 11:46:08 -0500 Subject: [PATCH] Fix sorting under View By Folder Structure. --- scripts/populate.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/populate.js b/scripts/populate.js index ad8eab7..3ea8593 100644 --- a/scripts/populate.js +++ b/scripts/populate.js @@ -2216,6 +2216,8 @@ class Populate { sort(data) { if (!ppt.libSource && !panel.multiProcess) return; this.specialCharSort(data); + // View By Folder Structure is already sorted + if (ppt.folderView) return; data.sort((a, b) => this.collator.compare(a.srt[2], b.srt[2]) || (a.srt[3] && !b.srt[3] ? 1 : 0)); } @@ -2289,4 +2291,4 @@ class Populate { this.setPlaylist(panel.pos, this.tree[panel.pos]); lib.treeState(false, ppt.rememberTree); } -} \ No newline at end of file +}