Filter: tcp_sort_main_loop

Description

Allows to add or modify a sorting method. This method will be executed in the main loop.

Parameters

$query
(String) Main loop query.
$order_type
(String) The name of the order type to apply.
$order_desc
(String) Possible values are ‘desc’ and ‘asc’.

Example

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

Change Log

Since 1.1.3

Related

tcp_sorting_fields | tcp_sort_query