def _get_sorted(self, resources):
        tmp = []
        for resource in resources:
            path = resource._path
            priority = path.count('/') * 10 - path.count('{')
            tmp.append((priority, resource))
        return [resource for prio, resource in reversed(sorted(tmp))]