summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/chttpd_misc.erl3
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").