Updated Task compareTo methods