Skip to content

Commit

Permalink
Sort keys when listing server configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Morgan committed Jul 8, 2009
1 parent 699835b commit 75ed80c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hqu/hqapi1/app/ServerconfigController.groovy
Expand Up @@ -16,8 +16,8 @@ class ServerconfigController extends ApiController {
"User " + user.name + " is not superuser")
} else {
out << getSuccessXML()
props.each { k, v ->
ServerConfig(key: k, value: v)
for (key in props.keySet().sort {a, b -> a <=> b}) {
ServerConfig(key: key, value: props.getProperty(key))
}
}
}
Expand Down

0 comments on commit 75ed80c

Please sign in to comment.