compareTo su stringa ritorna un positivo (non è detto che sia 1) o un negativo (non è detto che sia -1). L'ho semplicemente normalizzato.