setSorter
Short summary
This method can replace the default sorter for a custom one. Check :ref:ILinkedListSorter
Attention: If the injected sorter was created dynamically, it will be automatically destruced within the destruct context of THIS list.
Return: THIS^ as ISortable
- Return type: ISortable
Parameters
| Name | Type | Comment | Kind |
|---|---|---|---|
| sorter | ILinkedListSorter | The instance of the sorter to be used to sort the list | input |
Code
Declaration
METHOD setSorter :ISortable
VAR_INPUT
(*The instance of the sorter to be used to sort the list*)
sorter :ILinkedListSorter;
END_VAR