From fedd5ca7b6f69684e6c59cec1c92e82952cafa9c Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Tue, 20 Jan 2015 08:16:18 +0000 Subject: [PATCH] The "targets" widget now lists targets in alphabetical order. --- src/mkws-widget-main.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mkws-widget-main.js b/src/mkws-widget-main.js index e04b87d..5438348 100644 --- a/src/mkws-widget-main.js +++ b/src/mkws-widget-main.js @@ -29,6 +29,8 @@ mkws.registerWidgetType('targets', function() { cleandata.push(cur); } + cleandata.sort(function(a,b) { return a.name.localeCompare(b.name) }); + var template = that.team.loadTemplate(that.config.template || "targets"); that.node.html(template({data: cleandata})); }); -- 1.7.10.4