Skip to content

Commit 8ddbdec

Browse files
committed
Fix sorting under View By Folder Structure.
1 parent e78b7e1 commit 8ddbdec

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

scripts/populate.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2216,6 +2216,8 @@ class Populate {
22162216
sort(data) {
22172217
if (!ppt.libSource && !panel.multiProcess) return;
22182218
this.specialCharSort(data);
2219+
// View By Folder Structure is already sorted
2220+
if (ppt.folderView) return;
22192221
data.sort((a, b) => this.collator.compare(a.srt[2], b.srt[2]) || (a.srt[3] && !b.srt[3] ? 1 : 0));
22202222
}
22212223

@@ -2289,4 +2291,4 @@ class Populate {
22892291
this.setPlaylist(panel.pos, this.tree[panel.pos]);
22902292
lib.treeState(false, ppt.rememberTree);
22912293
}
2292-
}
2294+
}

0 commit comments

Comments
 (0)