setSorter
Short summary
This method can replace the default sorter with a custom one. Check :ref:IListSorter
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 | IArrayListSorter | 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 :IArrayListSorter;
END_VAR