Test: scheduler: sort nodes when creating constraints
We want to keep action ID numbers the same for regression test output
comparisons, so convert the allowed nodes hash table to a list before
creating actions while creating native constraints. Sort the list only
if printing to stdout, so the live cluster doesn't take the performance hit.