@Override
    public int compare(final User lhs, final User rhs) {
        final String lhsLogin = lhs.login();
        final String rhsLogin = rhs.login();

        if (lhsLogin.equals(login)) {
            return rhsLogin.equals(login) ? 0 : -1;
        }

        if (rhsLogin.equals(login)) {
            return lhsLogin.equals(login) ? 0 : 1;
        }

        return CASE_INSENSITIVE_ORDER.compare(lhsLogin, rhsLogin);
    }
Create comparator for given account

@param account
app/src/main/java/com/github/pockethub/android/core/user/UserComparator.java