diff options
author | Robert Newson <rnewson@apache.org> | 2010-10-27 18:39:07 +0000 |
---|---|---|
committer | Robert Newson <rnewson@apache.org> | 2010-10-27 18:39:07 +0000 |
commit | af75a3f4434a402b373e54c91e5f2c00ddbb49d7 (patch) | |
tree | 4ae7982604cc20991ff89b2527b08f0fee6543f7 /src/couchdb/couch_httpd_misc_handlers.erl | |
parent | 7bb18fb537cdf4546aa4aabe794815bf6ee9a2ba (diff) |
ensure _all_dbs output is sorted.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1028063 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_httpd_misc_handlers.erl')
-rw-r--r-- | src/couchdb/couch_httpd_misc_handlers.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_httpd_misc_handlers.erl b/src/couchdb/couch_httpd_misc_handlers.erl index 70db79f6..dafc6f39 100644 --- a/src/couchdb/couch_httpd_misc_handlers.erl +++ b/src/couchdb/couch_httpd_misc_handlers.erl @@ -66,7 +66,7 @@ handle_utils_dir_req(Req, _) -> handle_all_dbs_req(#httpd{method='GET'}=Req) -> {ok, DbNames} = couch_server:all_databases(), - send_json(Req, DbNames); + send_json(Req, lists:usort(DbNames)); handle_all_dbs_req(Req) -> send_method_not_allowed(Req, "GET,HEAD"). |