Skip to main content

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

Parameters

NameTypeCommentKind
sorterIArrayListSorterThe 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 :IArrayListSorter;
END_VAR