Sorted the list of environment names