diff --git a/src/storage/snapshotStore.js b/src/storage/snapshotStore.js index 0af020d..b04c95f 100644 --- a/src/storage/snapshotStore.js +++ b/src/storage/snapshotStore.js @@ -26,5 +26,6 @@ export function listSnapshots() { return fs .readdirSync(SNAP_DIR) .filter((f) => f.endsWith(".json")) - .map((f) => f.replace(".json", "")); + .map((f) => f.replace(/\.json$/, "")) + .sort(); }