updated Race.compare to work intuitively with functions and dates