I am having problems to group an array of objects by Environment. The following script show three environments with servers in each one. Now, I am trying to loop those objec