Ensure Environments list is sorted