Skip to content

Commit 9d3c3f7

Browse files
committed
Formatting
1 parent 6103912 commit 9d3c3f7

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

packages/jinja/src/runtime.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,12 +1140,14 @@ export class Interpreter {
11401140
return getAttributeValue(item, attrPath);
11411141
};
11421142

1143-
return new ArrayValue(operand.value.slice().sort((a, b) => {
1144-
const aVal = getSortValue(a);
1145-
const bVal = getSortValue(b);
1146-
const result = compareRuntimeValues(aVal, bVal, caseSensitive.value);
1147-
return reverse.value ? -result : result;
1148-
}));
1143+
return new ArrayValue(
1144+
operand.value.slice().sort((a, b) => {
1145+
const aVal = getSortValue(a);
1146+
const bVal = getSortValue(b);
1147+
const result = compareRuntimeValues(aVal, bVal, caseSensitive.value);
1148+
return reverse.value ? -result : result;
1149+
})
1150+
);
11491151
}
11501152
case "selectattr":
11511153
case "rejectattr": {

0 commit comments

Comments
 (0)