I would like to use the following class:
internal class IPComparer : IComparer<string>
{
public int Compare(string a, string b)
{
return Enumerable.Zip(a.Split('.'), b.Split('.'),
(x, y) => int.Parse(x).CompareTo(int.Parse(y))).FirstOrDefault(i => i != 0);
}
}
to sort IP addresses in a C# ListView by redefining the ListViewItemSorter method.

Could you tell me how to do it? Thanks