diff options
Diffstat (limited to 'src/ee/digikey')
-rw-r--r-- | src/ee/digikey/search_parts.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ee/digikey/search_parts.py b/src/ee/digikey/search_parts.py index 703e65f..144b254 100644 --- a/src/ee/digikey/search_parts.py +++ b/src/ee/digikey/search_parts.py @@ -262,7 +262,7 @@ def run_search_parts(in_path: Path, out_path: Path, log, cache_dir: Path, store_ for name, results in [("MPN", mpn_results), ("SPN", spn_results)]: print("{} Searches:\n".format(name), file=log) - for res, count in results.items(): + for res, count in sorted([(res, count) for res, count in results.items()], key=lambda x: x[0].value): print("* {}: {}".format(res.name, count), file=log) print("", file=log) |