rearrange resources order