Filter: tcp sorting order by (Deprecated)

Description

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

Deprecated

Since 1.1.3. use instead tcp_sort_main_loop.

Parameters

$order_by
(String) Current ‘order by’ 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 order by section to execute the sorting identified by the ‘order type’.

Example

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

Change Log

Since 1.1

Related

tcp_sorting_join | tcp_sorting_fields | tcp_sort_query