Skip to main content

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

Parameters

NameTypeCommentKind
sorterILinkedListSorterThe instance of the sorter to be used to sort the listinput

Code

Declaration

METHOD setSorter :ISortable
VAR_INPUT
(*The instance of the sorter to be used to sort the list*)
sorter :ILinkedListSorter;
END_VAR