Update resources.php to provide sorting of routes by url

Provides improved ordering of multiple resources that have the same HTTP method and extended urls. e.g. PUT /v1/departments/{departmentId}/users/{userId}