Change ordering of hosts

This commit is contained in:
Stone_Red
2023-12-14 14:16:59 +01:00
parent 7b4b8e184d
commit f90968f155
@@ -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));
}
}