$sql="SELECT * FROM pods WHERE hidden <> 'no' ORDER BY active_users_halfyear DESC NULLS LAST, uptimelast7 DESC NULLS LAST";
$sql="SELECT * FROM pods WHERE hidden <> 'no' ORDER BY weightedscore DESC";
}else{
$sql="SELECT * FROM pods WHERE adminrating <> -1 AND hidden <> 'yes' AND signup = 1 ORDER BY active_users_halfyear DESC NULLS LAST, uptimelast7 DESC NULLS LAST";
$sql="SELECT * FROM pods WHERE adminrating <> -1 AND hidden <> 'yes' AND signup = 1 ORDER BY weightedscore DESC";
}
$result=pg_query($dbh,$sql);
if(!$result){
...
...
@@ -61,14 +62,18 @@ $tip.="On a score of -20 to +20 this pod is a {$row["score"]} right now";
echo"<td>".$row["uptimelast7"]."%</td>";
echo"<td class='tipsy' title='active six months: ".$row["active_users_halfyear"].", active one month: ".$row["active_users_monthly"]."'>".$row["active_users_halfyear"]."</td>";