From d34c3440c35f81052a780e76242bd7d205d5efda Mon Sep 17 00:00:00 2001 From: Jcw87 Date: Mon, 30 Jan 2023 23:34:45 -0800 Subject: [PATCH] tp.py: progress: sort rels by name --- tools/tp.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/tp.py b/tools/tp.py index 0e8a5585ca3..c16ffd92f76 100644 --- a/tools/tp.py +++ b/tools/tp.py @@ -441,7 +441,7 @@ class ProgressGroup: def calculate_rel_progress(build_path: Path, matching: bool, format: str, asm_files: Set[Path], ranges: List[Tuple[int, int]]): - results = [] + results: List[ProgressGroup] = [] start = time.time() rel_paths = get_files_with_ext(build_path.joinpath("rel"), ".rel") end = time.time() @@ -472,6 +472,7 @@ def calculate_rel_progress(build_path: Path, matching: bool, format: str, asm_fi decompiled = size - sum(rel_ranges) results.append(ProgressGroup(name, size, decompiled, {})) + results.sort(key=lambda prog: prog.name) return results