Files
netch/Netch/Models/GitHubRelease/VersionComparer.cs
Connection Refused b2ea730984 done
2019-12-02 19:51:12 +08:00

13 lines
288 B
C#

using System.Collections.Generic;
namespace Netch.Models.GitHubRelease
{
public class VersionComparer : IComparer<object>
{
public int Compare(object x, object y)
{
return VersionUtil.CompareVersion(x?.ToString(), y?.ToString());
}
}
}