Return-Path: X-Original-To: apmail-felix-commits-archive@www.apache.org Delivered-To: apmail-felix-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 179509EE6 for ; Wed, 25 Jan 2012 09:42:40 +0000 (UTC) Received: (qmail 80550 invoked by uid 500); 25 Jan 2012 09:42:39 -0000 Delivered-To: apmail-felix-commits-archive@felix.apache.org Received: (qmail 80447 invoked by uid 500); 25 Jan 2012 09:42:31 -0000 Mailing-List: contact commits-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list commits@felix.apache.org Received: (qmail 80440 invoked by uid 99); 25 Jan 2012 09:42:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jan 2012 09:42:29 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jan 2012 09:42:26 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id A3F8423888FD for ; Wed, 25 Jan 2012 09:42:05 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1235702 - /felix/trunk/webconsole-plugins/upnp/src/main/resources/res/upnp.js Date: Wed, 25 Jan 2012 09:42:05 -0000 To: commits@felix.apache.org From: vvalchev@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120125094205.A3F8423888FD@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: vvalchev Date: Wed Jan 25 09:42:05 2012 New Revision: 1235702 URL: http://svn.apache.org/viewvc?rev=1235702&view=rev Log: Fixed FELIX-3314 Sort UPnP devices in alphabetical order https://issues.apache.org/jira/browse/FELIX-3314 Modified: felix/trunk/webconsole-plugins/upnp/src/main/resources/res/upnp.js Modified: felix/trunk/webconsole-plugins/upnp/src/main/resources/res/upnp.js URL: http://svn.apache.org/viewvc/felix/trunk/webconsole-plugins/upnp/src/main/resources/res/upnp.js?rev=1235702&r1=1235701&r2=1235702&view=diff ============================================================================== --- felix/trunk/webconsole-plugins/upnp/src/main/resources/res/upnp.js (original) +++ felix/trunk/webconsole-plugins/upnp/src/main/resources/res/upnp.js Wed Jan 25 09:42:05 2012 @@ -256,6 +256,7 @@ function listDevices() { $.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) } );