Package org.optaplanner.core.impl.heuristic.selector.common.decorator

## Interface SelectionSorter<Solution_,​T>

- Type Parameters:
    `Solution_` - the solution type, the class with the `PlanningSolution` annotation
    `T` - the selection type
  All Known Implementing Classes:
    `ComparatorSelectionSorter`, `WeightFactorySelectionSorter`

      public interface SelectionSorter<Solution_,​T>

  Decides the order of a `List` of selection (which is a `PlanningEntity`, a planningValue, a `Move` or a `Selector`).

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `sort​(ScoreDirector<Solution_> scoreDirector, List<T> selectionList)` |

- - ### Method Detail

    - #### sort

          void sort​(ScoreDirector<Solution_> scoreDirector,
                    List<T> selectionList)

      Parameters:
        `scoreDirector` - never null, the `ScoreDirector` which has the `ScoreDirector.getWorkingSolution()` to which the selections belong or apply to
        `selectionList` - never null, a `List` of `PlanningEntity`, planningValue, `Move` or `Selector`