private boolean isBetter(int a, int b) {
        final AbstractEventLoopEntry entryA = entries[a];
        final AbstractEventLoopEntry entryB = entries[b];
        if (entryA.activeRequests() < entryB.activeRequests()) {
            return true;
        }
        if (entryA.activeRequests() > entryB.activeRequests()) {
            return false;
        }

        return entryA.id() < entryB.id();
    }
Returns {@code true} if the entry at {@code a} is a better choice than the entry at {@code b}.
core/src/main/java/com/linecorp/armeria/client/HeapBasedEventLoopState.java