tp.py: progress: sort rels by name

This commit is contained in:
Jcw87 2023-01-30 23:34:45 -08:00
parent df55eee7a7
commit d34c3440c3
1 changed files with 2 additions and 1 deletions

View File

@ -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