Ensure functor configuration is stable
Iterating over set()
is not guaranteed to have a reproducible
order, so we need to ensure it by sorting it.
Follow up: I've resorted to sorting using hash()
for total ordering and hash is not stable unless PYTHONHASHSEED is set. This is not really what we need but for now the one test in Moore!1037 (merged) that needs reproducibility sets it explicitly.
Needed for Moore!1037 (merged)
Edited by Rosen Matev