Improve the ordering of stopping resources
Improve the ordering of stopping resources

Create a common function to generate the start order
and stop in the reverse order.

Signed-off-by: Angus Salkeld <86b65304d27d8de73dd7d624c33df7e088f8d94b@redhat.com>

steveb/heat,JioCloud/heat,varunarya10/heat,rickerc/heat_audit,pshchelo/heat,dims/heat,maestro-hybrid-cloud/heat,citrix-openstack-build/heat,noironetworks/heat,steveb/heat,Triv90/Heat,dragorosson/heat,cwolferh/heat-scratch,dims/heat,varunarya10/heat,gonzolino/heat,takeshineshiro/heat,dragorosson/heat,steveb/heat-cfntools,noironetworks/heat,srznew/heat,miguelgrinberg/heat,Triv90/Heat,rdo-management/heat,gonzolino/heat,sdake/heat-jeos,rh-s/heat,miguelgrinberg/heat,pratikmallya/heat,rickerc/heat_audit,NeCTAR-RC/heat,maestro-hybrid-cloud/heat,steveb/heat-cfntools,cryptickp/heat,bbandaru/heat-cfntools,redhat-openstack/heat,cryptickp/heat,NeCTAR-RC/heat,openstack/heat,Triv90/Heat,srznew/heat,pratikmallya/heat,takeshineshiro/heat,rh-s/heat,jasondunsmore/heat,pshchelo/heat,openstack/heat,ntt-sic/heat,jasondunsmore/heat,redhat-openstack/heat,citrix-openstack-build/heat,JioCloud/heat,cwolferh/heat-scratch,rdo-management/heat,openstack/heat-cfntools,ntt-sic/heat