nickarthur
11/19/2013 - 8:01 AM

ARRAY SORT CLOUDPARTY cloudparty which sorts by the time in seconds

ARRAY SORT CLOUDPARTY cloudparty which sorts by the time in seconds

//ARRAY SORT CLOUDPARTY cloudparty

    // Sort the total and current results lists by time
    arraySort(resultsTotalArray, 'sortByTime');
    arraySort(resultsCurrentArray, 'sortByTime');
    
    // Sort the total and current results lists by time
    arraySort(resultsCurrentArray, 'sortByTime');
    
    
    function sortByTime(a, b) {
      return (a[2] < b[2] ? -1 : (a[2] > b[2] ? 1 : 0));
    }