community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r1677445 - /comdev/projects.apache.org/site/js/projects.js
Date Sun, 03 May 2015 16:34:27 GMT
Author: hboutemy
Date: Sun May  3 16:34:27 2015
New Revision: 1677445

URL: http://svn.apache.org/r1677445
Log:
when displaying projects by name, really sort by name instead of id

Modified:
    comdev/projects.apache.org/site/js/projects.js

Modified: comdev/projects.apache.org/site/js/projects.js
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/site/js/projects.js?rev=1677445&r1=1677444&r2=1677445&view=diff
==============================================================================
--- comdev/projects.apache.org/site/js/projects.js (original)
+++ comdev/projects.apache.org/site/js/projects.js Sun May  3 16:34:27 2015
@@ -520,13 +520,8 @@ function renderProjectsList(cat) {
 
 	// Project list
 	var ul = document.createElement('ul');
-	var arr = []
-	for (i in projects) {
-	    arr.push(i);
-	}
-	arr.sort();
-	for (i in arr) {
-	    project = arr[i]
+	for (i in projectsSorted) {
+	    project = projectsSorted[i]
 	    var li = document.createElement('li');
 	    li.innerHTML = projectIcon(projects[project].name) + projectLink(project);
 	    ul.appendChild(li)



Mime
View raw message