Fixes #4859: Sort node id list system var to preven useless regeneration
Merge pull request #515 from fanf/bug_4859/sort_system_var_nodeids_to_prevent_regeneration

Fixes #4859: Sort node id list system var to preven useless regeneration