Sort constructor

Sort({
  1. required Iterable<Logic> toSort,
  2. bool isAscending = true,
  3. String name = 'sort',
  4. bool reserveName = false,
  5. bool reserveDefinitionName = false,
  6. String? definitionName,
})

Sort algorithm MUST have a list of toSort, direction of sort isAscending and a name for the sorting module.

Implementation

Sort(
    {required this.toSort,
    this.isAscending = true,
    super.name = 'sort',
    super.reserveName,
    super.reserveDefinitionName,
    String? definitionName})
    : super(definitionName: definitionName ?? 'Sort_W${toSort.length}');