File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -941,6 +941,7 @@ export class Interpreter {
941941 // - reverse: Sort descending instead of ascending
942942 // - case_sensitive: When sorting strings, sort upper and lower case separately
943943 // - attribute: When sorting objects or dicts, an attribute or key to sort by
944+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
944945 const [ _args , kwargs ] = this . evaluateArguments ( filter . args , environment ) ;
945946
946947 const reverse = kwargs . get ( "reverse" ) ?? new BooleanValue ( false ) ;
@@ -998,7 +999,7 @@ export class Interpreter {
998999 const aStr = ( aVal as StringValue ) . value ;
9991000 const bStr = ( bVal as StringValue ) . value ;
10001001 if ( caseSensitive . value ) {
1001- // Case-sensitive comparison: sort upper and lower case separately
1002+ // Case-sensitive comparison respects case differences in sorting
10021003 result = aStr < bStr ? - 1 : aStr > bStr ? 1 : 0 ;
10031004 } else {
10041005 // Case-insensitive comparison
You can’t perform that action at this time.
0 commit comments