From af75a3f4434a402b373e54c91e5f2c00ddbb49d7 Mon Sep 17 00:00:00 2001 From: Robert Newson Date: Wed, 27 Oct 2010 18:39:07 +0000 Subject: ensure _all_dbs output is sorted. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1028063 13f79535-47bb-0310-9956-ffa450edef68 --- src/couchdb/couch_httpd_misc_handlers.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/couchdb') 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"). -- cgit v1.2.3