Swagger API methods are sorted, so that raml file will be the same on each generation

Orphaned `}` - should either be a one-line expression or 

```groovy
def sortedResources = resources.sort { resource1, resource2 -> 
    resource1.path.compareTo(resource2.path)
}
```