docs: def _get_sorted(self, resources):
          """Order the resources by priority - the most specific paths come
          first.
  
          :param resources: List of :class:`wsgiservice.resource.Resource`
                            classes to be served by this application.
          """
          tmp = []
          for resource in resources:
              path = resource._path
              # Each slash counts as 10 priority, each variable takes one away
              priority = path.count('/') * 10 - path.count('{')
              tmp.append((priority, resource))
          return [resource for prio, resource in reversed(sorted(tmp))]