src/main/java/tech/zettervall/openlibrary/rxclient/models/Edition.java
/**
     * Natural sorting by title, reversed revision as secondary.
     */
Natural sorting by title, reversed revision as secondary.
Natural sorting by title reversed revision as secondary .
@Override
    public int compareTo(Edition edition) {
        int result = title.compareTo(edition.title);
        if (result == 0) {
            result = Integer.compare(revision, edition.revision);
            if (result == -1) {
                result = 1;
            } else if (result == 1) {
                result = -1;
            }
        }
        return result;
    }
@ Override public int compareTo ( Edition edition ) { int result = title . compareTo ( edition . title ) ; if ( result == 0 ) { result = Integer . compare ( revision , edition . revision ) ; if ( result == - 1 ) { result = 1 ; } else if ( result == 1 ) { result = - 1 ; } } return result ; }
Natural sorting by title, reversed revision as secondary.
Natural sorting by title reversed revision as secondary .
// Flip order