From 61450d9d1e01a8e8506f62343f6546903924c6a6 Mon Sep 17 00:00:00 2001 From: Adam Kocoloski Date: Tue, 20 Jul 2010 13:19:41 -0400 Subject: sort the response to /_active_tasks --- src/chttpd_misc.erl | 3 +-- 1 file changed, 1 insertion(+), 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"). -- cgit v1.2.3