Worked out CompareTo and ShareType