Keep order of env provided

Hi 

In #2252 multiple env support was added.
Order in that request was not saved, but it would be great to have it.