Fixed ordering of multiple resources (#1138)