Ints comparison fixed (method Integer.compare is supported from Java 7)