Sorting displayed results. Sort the results list for searching before the results are displayed. Useful for sorting matches by relevance to the user’s search term.
Enter “length” to sort by length of characters, or “alpha” to sort alphabetically.
Signature:
Parameters:
- $sort_func: custom JavaScript sort function