add ordering for resources