Function __global->sort_search_results
Definitions
sources/database_search.php
- Sort search results as returned by the search hook.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: array
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$hook_results | array | required parameter | N/A | N/A | Search results from the search hook, assumed already sorted |
$results | array | required parameter | N/A | N/A | Existing array of results (originally starts blank) |
$direction | string | required parameter | N/A | N/A | Sort direction |
Return
- Sorted results
- Type: array
- Set: N/A
- Range: N/A