[interpolatable] Sort issues by tolerance as well

This commit is contained in:
Behdad Esfahbod 2023-12-07 06:10:10 -07:00
parent 141b155353
commit 3ecbc94dcf

View File

@ -47,7 +47,10 @@ def sort_problems(problems):
sorted(
problems.items(),
key=lambda _: -min(
(InterpolatableProblem.severity[p["type"]] for p in _[1]),
(
(InterpolatableProblem.severity[p["type"]] + p.get("tolerance", 0))
for p in _[1]
),
),
reverse=True,
)