Skip to content

Commit

Permalink
feat: add sorting alphabetical in VUS render logic
Browse files Browse the repository at this point in the history
DEVSU-2076
  • Loading branch information
kttkjl committed Oct 16, 2023
1 parent f33912f commit c0a8c80
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion app/views/ReportView/components/RapidSummary/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,15 @@ const RapidSummary = ({
return (
<Box display="flex" flexDirection="row" flexWrap="wrap" margin="1rem 0 1rem 0">
{
(unknownSignificanceResults).map((entry) => (
(unknownSignificanceResults).sort(({ displayName: displayNameA }, { displayName: displayNameB }) => {
if (displayNameA < displayNameB) {
return -1;
}
if (displayNameA > displayNameB) {
return 1;
}
return 0;
}).map((entry) => (
<Box
display="inline-block"
padding={1}
Expand Down

0 comments on commit c0a8c80

Please sign in to comment.