interconnect/csr: Sort by DUID even with sort=False (for retro-compatibility).

This commit is contained in:
Florent Kermarrec 2022-10-22 09:21:37 +02:00
parent 50acdf73a4
commit 88d89773ef
1 changed files with 1 additions and 0 deletions

View File

@ -543,6 +543,7 @@ def _make_gatherer(method, cls, prefix_cb):
items = getattr(v, method)()
prefix_cb(k + "_", items, prefixed)
r += items
r = sorted(r, key=lambda x: x.duid)
if sort:
r = _sort_gathered_items(r)
return r