diff --git a/GuildWarsPartySearch.NodeJSServer/server.mjs b/GuildWarsPartySearch.NodeJSServer/server.mjs index d9bbe7f..2f8d74f 100644 --- a/GuildWarsPartySearch.NodeJSServer/server.mjs +++ b/GuildWarsPartySearch.NodeJSServer/server.mjs @@ -314,6 +314,8 @@ function reassign_bot_clients(request) { let bots_to_reassign = Object.values(bot_clients).filter((bot_client) => { return bot_client.explored_maps_weighting; }).sort((a, b) => { + if(a.explored_maps_weighting === b.explored_maps_weighting) + return (a.client_id || '').localeCompare(b.client_id || ''); return (a.explored_maps_weighting || 0) - (b.explored_maps_weighting || 0) }); let bots_assigned = [];