interconnect/csr: Sort by DUID even with sort=False (for retro-compatibility).
This commit is contained in:
parent
50acdf73a4
commit
88d89773ef
|
@ -543,6 +543,7 @@ def _make_gatherer(method, cls, prefix_cb):
|
||||||
items = getattr(v, method)()
|
items = getattr(v, method)()
|
||||||
prefix_cb(k + "_", items, prefixed)
|
prefix_cb(k + "_", items, prefixed)
|
||||||
r += items
|
r += items
|
||||||
|
r = sorted(r, key=lambda x: x.duid)
|
||||||
if sort:
|
if sort:
|
||||||
r = _sort_gathered_items(r)
|
r = _sort_gathered_items(r)
|
||||||
return r
|
return r
|
||||||
|
|
Loading…
Reference in New Issue