summaryrefslogtreecommitdiff
path: root/src/couchdb
diff options
context:
space:
mode:
authorRobert Newson <rnewson@apache.org>2010-10-27 18:39:07 +0000
committerRobert Newson <rnewson@apache.org>2010-10-27 18:39:07 +0000
commitaf75a3f4434a402b373e54c91e5f2c00ddbb49d7 (patch)
tree4ae7982604cc20991ff89b2527b08f0fee6543f7 /src/couchdb
parent7bb18fb537cdf4546aa4aabe794815bf6ee9a2ba (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')
-rw-r--r--src/couchdb/couch_httpd_misc_handlers.erl2
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").