set_sort_results()

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:

public function set_sort_results(mixed $sort_func)

Parameters:

  • $sort_func: custom JavaScript sort function

Related content:

  1. enable_dnd_sort()

Tags: