private int DescendingComparison(ThreadKeyPair x, ThreadKeyPair y) { return this.AscendingComparison(y, x); }
private int AscendingComparison(ThreadKeyPair x, ThreadKeyPair y) { if (x.SortKey == y.SortKey) return 0; if (x.SortKey == null) return -1; if (y.SortKey == null) return 1; return x.SortKey.CompareTo(y.SortKey); }