oh-my-adhd 0.2.22 → 0.2.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -144,7 +144,8 @@ export function registerWikiImport(server) {
|
|
|
144
144
|
existingIds.add(id); // prevent duplicate IDs within same import
|
|
145
145
|
importedThreads++;
|
|
146
146
|
}
|
|
147
|
-
//
|
|
147
|
+
// Sort by updatedAt desc — matches saveCapture/updateManifestEntry behavior
|
|
148
|
+
manifest.sort((a, b) => new Date(b.updatedAt).getTime() - new Date(a.updatedAt).getTime());
|
|
148
149
|
const tmp = manifestFile + ".tmp";
|
|
149
150
|
await fs.writeFile(tmp, JSON.stringify(manifest, null, 2), "utf-8");
|
|
150
151
|
await fs.rename(tmp, manifestFile);
|
package/package.json
CHANGED