Filter: tcp sorting join (Deprecated)

Description

Allows to add or modify the ‘join’ section, to execute a sorting action in the main loop.

Deprecated

Since 1.1.3. use instead tcp_sort_main_loop.

Parameters

$join
(String) Current ‘join’ section of the SQL of the main loop.
$order_type
(String) The name of the order type to apply.
$order_desc
(String) Possible values are ‘desc’ and ‘asc’.
Return
(String) The new join section to execute the sorting identified by ‘order type’.

Example

See an example in the page how to add sorting methods.

Change Log

Since 1.1

Related

tcp_sorting_order_by | tcp_sorting_fields | tcp_sort_query