ISorter
in
Interface ISorter
Sorts the list of .e.g users for auto completion
Tags
Table of Contents
Methods
Methods
getId()
public
getId() : string
Tags
Return values
string —The ID of the sorter, e.g. commenters
sort()
executes the sort action
public
sort(array<string|int, mixed> &$sortArray, array{itemType: string, itemId: string, search?: string} $context) : mixed
Parameters
- $sortArray : array<string|int, mixed>
-
the array to be sorted, provided as reference
- $context : array{itemType: string, itemId: string, search?: string}
-
carries key 'itemType' and 'itemId' of the source object (e.g. a file)