```coffeescript
sorted[key] = query[key] for key in Object.keys(query).sort()
```