1 public abstract class MyObject: IComparable<MyObject>
2 {
3 public Int64 sortnumber { get; set; }
4
5 /// <summary>
6 /// Compare two objects
7 /// </summary>
8 /// <param name="other">The objects to be compared with.</param>
9 /// <returns>
10 /// A 32-Bit Signed Integer that states the relative sortorder of the two objects
11 /// </returns>
12 public int CompareTo(MyObject other)
13 {
14 return this.sortnumber.CompareTo(other.sortnumber);
15 }
16 }