Updating to reflect API change to prefer CompareTo