MinieLibrary/src/main/java/com/jme3/bullet/collision/PhysicsCollisionObject.java
/**
     * Compare (by ID) with another collision object.
     *
     * @param other (not null, unaffected)
     * @return 0 if the objects have the same native ID; negative if this comes
     * before other; positive if this comes after other
     */
Compare (by ID) with another collision object.
@param other (not null, unaffected)
@return 0 if the objects have the same native ID; negative if this comes
before other; positive if this comes after other
Compare ( by ID ) with another collision object . @param other ( not null unaffected ) @return 0 if the objects have the same native ID ; negative if this comes before other ; positive if this comes after other
@Override
    public int compareTo(PhysicsCollisionObject other) {
        long objectId = nativeId();
        long otherId = other.nativeId();
        int result = Long.compare(objectId, otherId);
        return result;
    }
@ Override public int compareTo ( PhysicsCollisionObject other ) { long objectId = nativeId ( ) ; long otherId = other . nativeId ( ) ; int result = Long . compare ( objectId , otherId ) ; return result ; }
Compare (by ID) with another collision object.
Compare ( by ID ) with another collision object .