Fixed FELIX-3314 Sort UPnP devices in alphabetical order
https://issues.apache.org/jira/browse/FELIX-3314

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1235702 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/webconsole-plugins/upnp/src/main/resources/res/upnp.js b/webconsole-plugins/upnp/src/main/resources/res/upnp.js
index cf8432d..886b081 100644
--- a/webconsole-plugins/upnp/src/main/resources/res/upnp.js
+++ b/webconsole-plugins/upnp/src/main/resources/res/upnp.js
@@ -256,6 +256,7 @@
 	

 	$.post(pluginRoot, { 'action': 'listDevices' }, function(data) {

 		if (data && data.devices) {

+			data.devices.sort(function(a,b){ return a.props['UPnP.device.friendlyName'] > b.props['UPnP.device.friendlyName']});

 			$.each(data.devices, function(index) {

 				var html = addDevice(this);

 				browser.treeview( { add: html.appendTo(browser) } );