Ensure the node list is sorted

Otherwise the node entries could come back in an arbitrary order; since
this is an ordered list of dictionaries that might not be expected by
the API consumers, so ensure it's always sorted.
This commit is contained in:
Joshua Boniface 2022-08-09 12:03:49 -04:00
parent 4b36753f27
commit 05a316cdd6
1 changed files with 1 additions and 0 deletions

View File

@ -236,6 +236,7 @@ def get_list(
):
node_list = []
full_node_list = zkhandler.children("base.node")
full_node_list.sort()
if is_fuzzy and limit:
# Implicitly assume fuzzy limits