Skip to content

Commit 7130e57

Browse files
committed
fix: sorting_function
1 parent e1d34d8 commit 7130e57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gardenlinux/features/difference_formatter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ def __str__(self) -> str:
327327

328328
# Sort the problems by affected flavors in descending order and by files names for problems with the same number of affected flavors
329329
# to get a derterministic ordering for testing
330-
sorting_function = lambda files: (-len(trees[files][0]), ",".join(files))
330+
sorting_function = lambda files: (-len(trees[files][0]), ",".join(sorted(files)))
331331

332332
for files in sorted(trees, key=sorting_function):
333333
flavors, tree = trees[files]

0 commit comments

Comments
 (0)