external/bbop.js
function order_cohort(in_brackets){	    
	    // Push into global cohort list list.
	    for( var i = 0; i < in_brackets.length; i++ ){
		var bracket_item = in_brackets[i];
		//
		//_kvetch(' order_cohort: i: ' + i);
		//_kvetch(' order_cohort: lvl: ' + bracket_item.level);
		cohort_list[bracket_item.level - 1].push(bracket_item);
		// Drill down.
		if( bracket_item.brackets.length > 0 ){
		    //_kvetch(' order_cohort: down: ' +
		    //        bracket_item.brackets.length);
		    order_cohort(bracket_item.brackets);
		}
	    }
	}
function order_cohort(in_brackets){	    
	    // Push into global cohort list list.
	    for( var i = 0; i < in_brackets.length; i++ ){
		var bracket_item = in_brackets[i];
		//
		//_kvetch(' order_cohort: i: ' + i);
		//_kvetch(' order_cohort: lvl: ' + bracket_item.level);
		cohort_list[bracket_item.level - 1].push(bracket_item);
		// Drill down.
		if( bracket_item.brackets.length > 0 ){
		    //_kvetch(' order_cohort: down: ' +
		    //        bracket_item.brackets.length);
		    order_cohort(bracket_item.brackets);
		}
	    }
	}
function order_cohort ( in_brackets ) { // Push into global cohort list list. for ( var i = 0 ; i < in_brackets . length ; i ++ ) { var bracket_item = in_brackets [ i ] ; // //_kvetch(' order_cohort: i: ' + i); //_kvetch(' order_cohort: lvl: ' + bracket_item.level); cohort_list [ bracket_item . level - 1 ] . push ( bracket_item ) ; // Drill down. if ( bracket_item . brackets . length > 0 ) { //_kvetch(' order_cohort: down: ' + //        bracket_item.brackets.length); order_cohort ( bracket_item . brackets ) ; } } }
Walk down and stack up.
Walk down and stack up .