File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,11 @@ export class Vulnerability implements Comparable<Vulnerability> {
112
112
/* eslint-disable @typescript-eslint/strict-boolean-expressions -- run compares in weighted order */
113
113
return ( this . id ?? '' ) . localeCompare ( other . id ?? '' ) ||
114
114
( this . description ?? '' ) . localeCompare ( other . description ?? '' ) ||
115
- ( this . detail ?? '' ) . localeCompare ( other . detail ?? '' )
115
+ ( this . detail ?? '' ) . localeCompare ( other . detail ?? '' ) ||
116
+ ( this . recommendation ?? '' ) . localeCompare ( other . recommendation ?? '' ) ||
117
+ ( this . created . toString ( ) ?? '' ) . localeCompare ( other . created . toString ( ) ?? '' ) ||
118
+ ( this . published . toString ( ) ?? '' ) . localeCompare ( other . published . toString ( ) ?? '' ) ||
119
+ ( this . updated . toString ( ) ?? '' ) . localeCompare ( other . updated . toString ( ) ?? '' )
116
120
/* eslint-enable @typescript-eslint/strict-boolean-expressions */
117
121
}
118
122
}
You can’t perform that action at this time.
0 commit comments