Skip to content

Commit

Permalink
Sort resources on return
Browse files Browse the repository at this point in the history
  • Loading branch information
pderaaij committed Oct 9, 2024
1 parent 784dabf commit c9c853e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/foam-vscode/src/core/model/workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ export class FoamWorkspace implements IDisposable {

public resources(): IterableIterator<Resource> {
const resources: Array<Resource> = 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 {
Expand Down

0 comments on commit c9c853e

Please sign in to comment.