CompareTo was being used backwards