diff --git a/HyperbolicDownloaderApi/Networking/HostsManager.cs b/HyperbolicDownloaderApi/Networking/HostsManager.cs index f6f3d04..8f28e99 100644 --- a/HyperbolicDownloaderApi/Networking/HostsManager.cs +++ b/HyperbolicDownloaderApi/Networking/HostsManager.cs @@ -150,7 +150,10 @@ public class HostsManager public void SaveHosts() { - hosts = hosts.OrderByDescending(h => h.LastActive).ToList(); + hosts = hosts + .OrderByDescending(s => s.DownloadSpeed) + .ThenByDescending(s => s.LastActive) + .ToList(); File.WriteAllText(ApiConfiguration.HostsFilePath, JsonSerializer.Serialize(hosts)); } } \ No newline at end of file