Sort<T extends Logic> constructor
Sort algorithm MUST have a list of toSort, direction of
sort isAscending and a name for the sorting module.
Implementation
Sort(
{required this.toSort,
Logic Function(T a, T b)? isLessThan,
this.isAscending = true,
super.name = 'sort',
super.reserveName,
super.reserveDefinitionName,
String? definitionName})
: _isLessThan = isLessThan,
super(definitionName: definitionName ?? 'Sort_W${toSort.length}');