Skip to content

Commit

Permalink
feat(reporter): Sort license finding paths with localeCompare
Browse files Browse the repository at this point in the history
Use localeCompare to sort paths textually.

Signed-off-by: Andy Durant <[email protected]>
  • Loading branch information
AJDurant authored and sschuberth committed Mar 6, 2024
1 parent 4eaf96c commit 82faa95
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ const PackageFindingsTable = (props) => {
dataIndex: 'path',
defaultSortOrder: 'ascend',
key: 'path',
sorter: (a, b) => a.path.length - b.path.length,
sorter: (a, b) => a.path.localeCompare(b.path),
textWrap: 'word-break',
title: 'Path'
},
Expand Down

0 comments on commit 82faa95

Please sign in to comment.