From 524ca9d0a2cf6be11f8fca6697861f5de326f608 Mon Sep 17 00:00:00 2001 From: Adam Coster Date: Mon, 19 Feb 2024 16:22:06 -0600 Subject: [PATCH] fix: Backups are now sorted by creation date --- packages/cl2-editor/src/gc.fs.mts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cl2-editor/src/gc.fs.mts b/packages/cl2-editor/src/gc.fs.mts index 021c167c..79a3026c 100644 --- a/packages/cl2-editor/src/gc.fs.mts +++ b/packages/cl2-editor/src/gc.fs.mts @@ -125,7 +125,7 @@ export class GameChangerFs implements vscode.FileSystemProvider { } return backupsInfo .filter((_, i) => exist[i]) - .sort((a, b) => b.lastOpened.getTime() - a.lastOpened.getTime()); + .sort((a, b) => b.created.getTime() - a.created.getTime()); } protected async loadBackupsIndex() {