Skip to content

Commit

Permalink
Merge pull request #1074 from dvaerum/main
Browse files Browse the repository at this point in the history
  • Loading branch information
skjnldsv authored Sep 14, 2024
2 parents f0e9f7b + 0bf32f5 commit 5562732
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/fileSorting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export function sortNodes(nodes: readonly INode[], options: FilesSortingOptions
// 3: Use sorting mode if NOT basename (to be able to use display name too)
...(sortingOptions.sortingMode !== FilesSortingMode.Name ? [(v: INode) => v[sortingOptions.sortingMode]] : []),
// 4: Use display name if available, fallback to name
(v: INode) => basename(v.attributes?.displayname || v.basename),
(v: INode) => basename(v.displayname || v.attributes?.displayname || v.basename),
// 5: Finally, use basename if all previous sorting methods failed
(v: INode) => v.basename,
]
Expand Down

0 comments on commit 5562732

Please sign in to comment.