Skip to content

Commit 183f240

Browse files
Copilotxenova
andcommitted
Fix linting issue and improve comment clarity
Co-authored-by: xenova <[email protected]>
1 parent ac68978 commit 183f240

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/jinja/src/runtime.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)