in src/PDWScripter/NonclusteredIndexes.cs [15:32]
public virtual int CompareTo(object obj)
{
if (obj == null) return 1;
NonclusteredIndexes otherNonclusteredIndexes = obj as NonclusteredIndexes;
if (otherNonclusteredIndexes != null)
{
if (this == null || otherNonclusteredIndexes == null) return 1;
this.Sort((a, b) => a.name.ToUpper().CompareTo(b.name));
otherNonclusteredIndexes.Sort((a, b) => a.name.ToUpper().CompareTo(b.name));
if (this.Count != otherNonclusteredIndexes.Count) return 1;
for (int i = 0; i < this.Count; i++)
{
if (this[i].CompareTo(otherNonclusteredIndexes[i]) == 1) return 1;
}
}
return 0;
}