change order direction

This commit is contained in:
alejandro.campos@artica.es 2024-03-19 15:20:43 +01:00
parent 32159b771d
commit 2b010aca6e

View File

@ -2320,7 +2320,7 @@ function agents_get_addresses(
$id_agent, $id_agent,
$order_by_id=false $order_by_id=false
) { ) {
$order_clause = ($order_by_id === true) ? 'ORDER BY taddress.id_a' : ''; $order_clause = ($order_by_id === true) ? 'ORDER BY taddress.id_a DESC' : '';
if (is_array($id_agent)) { if (is_array($id_agent)) {
$sql = sprintf( $sql = sprintf(