public new int Compare(object x, object y) { if ((x is String) && IsWholeNumber((string)x) && (y is String) && IsWholeNumber((string)y)) { return base.Compare(Convert.ToInt32(x), Convert.ToInt32(y)); } else { return base.Compare(x, y); } }