867304 - sorting first environment in paths for env selector