class SortingMoveSelector<Solution_> extends AbstractCachingMoveSelector<Solution_> {

    protected final SelectionSorter<Solution_, Move<Solution_>> sorter;

    public SortingMoveSelector(MoveSelector<Solution_> childMoveSelector, SelectionCacheType cacheType,
            SelectionSorter<Solution_, Move<Solution_>> sorter) {
        super(childMoveSelector, cacheType);
        this.sorter = sorter;
    }

    // ************************************************************************
    // Worker methods
    // ************************************************************************

    @Override
    public void constructCache(SolverScope<Solution_> solverScope) {<FILL_FUNCTION_BODY>}

    @Override
    public boolean isNeverEnding() {
        return false;
    }

    @Override
    public Iterator<Move<Solution_>> iterator() {
        return cachedMoveList.iterator();
    }

    @Override
    public String toString() {
        return "Sorting(" + childMoveSelector + ")";
    }

}

        super.constructCache(solverScope);
        sorter.sort(solverScope.getScoreDirector(), cachedMoveList);
        logger.trace("    Sorted cachedMoveList: size ({}), moveSelector ({}).",
                cachedMoveList.size(), this);
    
<methods>public void <init>(MoveSelector<Solution_>, org.optaplanner.core.config.heuristic.selector.common.SelectionCacheType) ,public void constructCache(SolverScope<Solution_>) ,public void disposeCache(SolverScope<Solution_>) ,public org.optaplanner.core.config.heuristic.selector.common.SelectionCacheType getCacheType() ,public MoveSelector<Solution_> getChildMoveSelector() ,public long getSize() ,public boolean isCountable() <variables>protected final non-sealed org.optaplanner.core.config.heuristic.selector.common.SelectionCacheType cacheType,protected List<Move<Solution_>> cachedMoveList,protected final non-sealed MoveSelector<Solution_> childMoveSelector