diff options
author | Adam Kocoloski <adam@cloudant.com> | 2010-07-20 13:19:41 -0400 |
---|---|---|
committer | Adam Kocoloski <adam@cloudant.com> | 2010-08-12 11:20:55 -0400 |
commit | 61450d9d1e01a8e8506f62343f6546903924c6a6 (patch) | |
tree | 92d23e60572efe242f0d10f6855ec8322a455835 | |
parent | f7109f32f7c2f97eaa19ce334f6bf7ea8caa995e (diff) |
sort the response to /_active_tasks
-rw-r--r-- | src/chttpd_misc.erl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/chttpd_misc.erl b/src/chttpd_misc.erl index afa097d4..a6cbd520 100644 --- a/src/chttpd_misc.erl +++ b/src/chttpd_misc.erl @@ -101,8 +101,7 @@ handle_task_status_req(#httpd{method='GET'}=Req) -> Response = lists:flatmap(fun({Node, Tasks}) -> [{[{node,Node} | Task]} || Task <- Tasks] end, Replies), - % TODO filter by customer - send_json(Req, Response); + send_json(Req, lists:sort(Response)); handle_task_status_req(Req) -> send_method_not_allowed(Req, "GET,HEAD"). |