java 1.6 compatibility

remove call of Integer.compareTo(int,int) method (since java 1.7)