TP2: cast double to int the compare method returned value.