mirror of
https://github.com/glest/glest-source.git
synced 2025-02-24 19:52:25 +01:00
better sort order again ...
This commit is contained in:
parent
83c8efae51
commit
eaa8a56cb2
@ -8,7 +8,7 @@
|
||||
// consider replacing this by a cron job
|
||||
cleanupServerList();
|
||||
|
||||
$servers_in_db = mysql_query( 'SELECT * FROM glestserver ORDER BY status, (networkSlots - connectedClients) DESC, ip DESC;' );
|
||||
$servers_in_db = mysql_query( 'SELECT * FROM glestserver ORDER BY status, connectedClients>0 DESC, (networkSlots - connectedClients) , ip DESC;' );
|
||||
$all_servers = array();
|
||||
while ( $server = mysql_fetch_array( $servers_in_db ) )
|
||||
{
|
||||
|
@ -8,7 +8,7 @@
|
||||
// consider replacing this by a cron job
|
||||
cleanupServerList();
|
||||
|
||||
$servers_in_db = mysql_query( 'SELECT * FROM glestserver ORDER BY status, (networkSlots - connectedClients) DESC, ip DESC;' );
|
||||
$servers_in_db = mysql_query( 'SELECT * FROM glestserver ORDER BY status, connectedClients>0 DESC, (networkSlots - connectedClients) , ip DESC;' );
|
||||
$all_servers = array();
|
||||
while ( $server = mysql_fetch_array( $servers_in_db ) )
|
||||
{
|
||||
|
@ -8,7 +8,7 @@
|
||||
// consider replacing this by a cron job
|
||||
cleanupServerList();
|
||||
|
||||
$servers_in_db = mysql_query( 'SELECT * FROM glestserver ORDER BY status, (networkSlots - connectedClients) DESC, ip DESC;' );
|
||||
$servers_in_db = mysql_query( 'SELECT * FROM glestserver ORDER BY status, connectedClients>0 DESC, (networkSlots - connectedClients) , ip DESC;' );
|
||||
$all_servers = array();
|
||||
while ( $server = mysql_fetch_array( $servers_in_db ) )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user