commit | 40f6a421fc913b5a9c6dc6aa129f2cec9b3fce7d | [log] [tgz] |
---|---|---|
author | Valentin Valchev <vvalchev@apache.org> | Wed Jan 25 09:42:05 2012 +0000 |
committer | Valentin Valchev <vvalchev@apache.org> | Wed Jan 25 09:42:05 2012 +0000 |
tree | 0bf0852a65b08642608c0b92fe50cd662384c987 | |
parent | f5352463e2489e3a7dc6164dfd143cdba270d884 [diff] |
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) } );