windows: sort environment variables before calling CreateProcess