ISorter
Interface ISorter
Sorts the list of .e.g users for auto completion
Tags
Table of Contents
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 &$sortArray, array $context) : mixed
Parameters
- $sortArray : array
-
the array to be sorted, provided as reference
- $context : array
-
carries key 'itemType' and 'itemId' of the source object (e.g. a file)