Preserve order of pillar_roots in _get_envs()
Preserve order of pillar_roots in _get_envs()

_get_envs() returns pillar_roots in a non-deterministic order. Update _get_envs() to preserve the order of pillar_roots similar to #e36d683 for file_roots in state.py.

Fixes #24501

saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt