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 a338541 commit ce662af
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 ce662af

Please sign in to comment.