Tag Archives: Sort

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

enable_dnd_sort()

Drag and drop sorting of multiple selected choices (using JQuery UI sort).The sorting is only available when control is attached to <input type=”hidden”>.

Signature:

public function enable_dnd_sort(bool $sort = false )

Parameters:

  • $sort: true or false