Page 1 of 1

Margin Pool Sort

Posted: Sun Sep 08, 2019 8:33 pm
by fbonani
I am running a combination survivor/margin pool and need some help from someone to sort the margin standings by Score rather than player name. This would require some code change/addition to the sideStandings.asp file. Thanks in advance for any assistance.

Re: Margin Pool Sort

Posted: Mon Sep 09, 2019 7:52 pm
by Russaholic
Here is the code to sort the weeklyResults page by wins

Code: Select all

<%	end if %>
	//]]>
	// Execute the pick sort as soon as the page loads.	
	domUtils.onready(function() 
	{		
		tableSort.sort(resultsScoreSort);	
	}
	);
	</script>
<!-- #include file="includes/custom.asp" -->
</head>
Here is the code to sort the sideStandings page by status

Code: Select all

<%	end if %>
//]]>
// Execute the pick sort as soon as the page loads.	
	domUtils.onready(function() 
	{		
		tableSort.sort(survivorStatusSort);			
	}
	);
	</script>
<!-- #include file="includes/custom.asp" -->
</head>
I recommend doing a search for "sort" and you will find a lot of good threads on this topic.

Re: Margin Pool Sort

Posted: Mon Sep 09, 2019 8:01 pm
by fbonani
I found the code to sort the Margin Pool by Score in the Archives. As I thought, it was an easy fix and the fix was right in front of me all along.