gnomeExtensions/update: Sort colliding UUIDs

Unlike `dict`, whose items are guaranteed to follow the insertion order since Python 3.7:
https://docs.python.org/3.13/library/stdtypes.html#mapping-types-dict
Set has no such guarantees:
https://docs.python.org/3.13/library/stdtypes.html#set-types-set-frozenset

Let’s sort the UUIDs to ensure consistent order.
This commit is contained in:
Honnip
2025-05-08 23:07:16 +02:00
committed by Jan Tojnar
parent 6e9a04a6d6
commit 13e52491df
@@ -336,7 +336,7 @@ def find_collisions(
if shell_version in extension["shell_version_map"]:
package_name_registry.setdefault(pname, set()).add(uuid)
return {
pname: list(uuids)
pname: sorted(uuids)
for pname, uuids in package_name_registry.items()
if len(uuids) > 1
}