Skip to content

Commit

Permalink
Add file path sort to updateFileAssignment
Browse files Browse the repository at this point in the history
  • Loading branch information
seanlw committed May 6, 2021
1 parent 45ddd41 commit 5c731ab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,9 @@ export const updateFileAssignment = (items: ReadonlyArray<IObject>, projectpath:
}
return file
})
.sort((a, b) => {
return a.path.localeCompare(b.path)
})
item.files = files

return files
Expand Down

0 comments on commit 5c731ab

Please sign in to comment.