From c9c853ef138508410c080f4ae0cd08e4106277bf Mon Sep 17 00:00:00 2001 From: Paul de Raaij Date: Wed, 9 Oct 2024 19:52:59 +0200 Subject: [PATCH] Sort resources on return --- packages/foam-vscode/src/core/model/workspace.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/foam-vscode/src/core/model/workspace.ts b/packages/foam-vscode/src/core/model/workspace.ts index b85635bd5..6fb502a32 100644 --- a/packages/foam-vscode/src/core/model/workspace.ts +++ b/packages/foam-vscode/src/core/model/workspace.ts @@ -63,10 +63,10 @@ export class FoamWorkspace implements IDisposable { public resources(): IterableIterator { const resources: Array = Array.from( - Array.from(this._resources.values()) + this._resources.values() ).sort(Resource.sortByPath); - return this._resources.values(); + return resources.values(); } public get(uri: URI): Resource {