use array_intersect to ensure correct order on only resource routes.