mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-10 00:08:22 +03:00
Deterministic Collection Sort never did anything for folders or tables...
This commit is contained in:
@@ -27,9 +27,16 @@ function DeterministicCollectionSort() {
|
||||
if (collection.startsWith("charts-")) {
|
||||
content.sort(ChartSort);
|
||||
}
|
||||
if (collection.startsWith("songs-")) {
|
||||
else if (collection.startsWith("songs-")) {
|
||||
content.sort((a, b) => a.id - b.id);
|
||||
}
|
||||
else if (collection.startsWith("folders")) {
|
||||
content.sort((a, b) => a.folderID.localeCompare(b.folderID));
|
||||
}
|
||||
else if (collection.startsWith("folders")) {
|
||||
content.sort((a, b) => a.tableID.localeCompare(b.tableID));
|
||||
}
|
||||
|
||||
|
||||
content = content.map(SortObjectKeys);
|
||||
|
||||
|
||||
@@ -50,9 +50,10 @@ if (options.all) {
|
||||
await ExportCollection(collection);
|
||||
}
|
||||
|
||||
DeterministicCollectionSort();
|
||||
RemoveUnderscoreID();
|
||||
|
||||
DeterministicCollectionSort();
|
||||
|
||||
logger.info(`Done!`);
|
||||
|
||||
process.exit(0);
|
||||
|
||||
Reference in New Issue
Block a user