You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by hu...@apache.org on 2019/08/06 15:33:02 UTC

svn commit: r1864523 - in /comdev/reporter.apache.org/trunk/site/wizard/js: source/generators.js source/statistics_generator.js wizard.js

Author: humbedooh
Date: Tue Aug  6 15:33:02 2019
New Revision: 1864523

URL: http://svn.apache.org/viewvc?rev=1864523&view=rev
Log:
sort numerically

Modified:
    comdev/reporter.apache.org/trunk/site/wizard/js/source/generators.js
    comdev/reporter.apache.org/trunk/site/wizard/js/source/statistics_generator.js
    comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js

Modified: comdev/reporter.apache.org/trunk/site/wizard/js/source/generators.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/source/generators.js?rev=1864523&r1=1864522&r2=1864523&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/source/generators.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/source/generators.js Tue Aug  6 15:33:02 2019
@@ -474,7 +474,7 @@ function activity_tips(data) {
         }
         ages.push(reldate.unix());
     }
-    ages.sort().reverse();
+    ages.sort((a,b) => b-a);
     ages = ages.splice(0,new_releases >= 3 ? new_releases : 3);
     let to_show = ages.length;
     let releases_shown = 0;

Modified: comdev/reporter.apache.org/trunk/site/wizard/js/source/statistics_generator.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/source/statistics_generator.js?rev=1864523&r1=1864522&r2=1864523&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/source/statistics_generator.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/source/statistics_generator.js Tue Aug  6 15:33:02 2019
@@ -848,7 +848,7 @@ function statistics_releases(data) {
         }
         ages.push(reldate.unix());
     }
-    ages.sort().reverse();
+    ages.sort((a,b) => b-a);
     ages = ages.splice(0, new_releases >= 3 ? new_releases : 3);
     let to_show = ages.length;
     let releases_shown = 0;

Modified: comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js?rev=1864523&r1=1864522&r2=1864523&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js Tue Aug  6 15:33:02 2019
@@ -1659,7 +1659,7 @@ function activity_tips(data) {
         }
         ages.push(reldate.unix());
     }
-    ages.sort().reverse();
+    ages.sort((a,b) => b-a);
     ages = ages.splice(0,new_releases >= 3 ? new_releases : 3);
     let to_show = ages.length;
     let releases_shown = 0;
@@ -2947,7 +2947,7 @@ function statistics_releases(data) {
         }
         ages.push(reldate.unix());
     }
-    ages.sort().reverse();
+    ages.sort((a,b) => b-a);
     ages = ages.splice(0, new_releases >= 3 ? new_releases : 3);
     let to_show = ages.length;
     let releases_shown = 0;