epl_get_sorter_query_args

Query arguments for a sorter from epl_sorting_options()

Adds tiebreakers so listings with the same value (the same status, suburb, price or post date) come back in a fixed order. Without them MySQL returns ties in any order, so a listing can show on two pages, or on none, when paging through sorted results. Meta and title sorts break ties by newest first, then ID. Date sorts break ties by ID in the same direction. A random sort, or a sorter whose orderby already lists several keys, is used as is.

Since
3.6
Parameters
array $sorter

A sorter: type (meta or post), key, order and, for meta, orderby.

#
Returns
array

WP_Query arguments: orderby, order and, for meta sorters, meta_key.