remove id compare , soretedview
This commit is contained in:
parent
a22f60acd4
commit
56e780ba35
@ -212,13 +212,7 @@ namespace ObservableCollections.Internal
|
|||||||
|
|
||||||
public int Compare((T value, TKey id) x, (T value, TKey id) y)
|
public int Compare((T value, TKey id) x, (T value, TKey id) y)
|
||||||
{
|
{
|
||||||
var compare = comparer.Compare(x.value, y.value);
|
return comparer.Compare(x.value, y.value);
|
||||||
if (compare == 0)
|
|
||||||
{
|
|
||||||
compare = Comparer<TKey>.Default.Compare(x.id, y.id);
|
|
||||||
}
|
|
||||||
|
|
||||||
return compare;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -231,13 +231,7 @@ namespace ObservableCollections.Internal
|
|||||||
|
|
||||||
public int Compare((TView view, TKey id) x, (TView view, TKey id) y)
|
public int Compare((TView view, TKey id) x, (TView view, TKey id) y)
|
||||||
{
|
{
|
||||||
var compare = comparer.Compare(x.view, y.view);
|
return comparer.Compare(x.view, y.view);
|
||||||
if (compare == 0)
|
|
||||||
{
|
|
||||||
compare = Comparer<TKey>.Default.Compare(x.id, y.id);
|
|
||||||
}
|
|
||||||
|
|
||||||
return compare;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user