From 8eb9c582f31229efea0e8dc90a9c25cb5b23de89 Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Wed, 10 Jun 2015 23:36:05 +0300 Subject: [PATCH] Metrics sorting. --- zabbix/datasource.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zabbix/datasource.js b/zabbix/datasource.js index 7e487a5..d5f601f 100644 --- a/zabbix/datasource.js +++ b/zabbix/datasource.js @@ -185,7 +185,9 @@ function (angular, _, kbn) { }) }; return series; - })); + })).then(function (result) { + return _.sortBy(result, 'target'); + }); };