diff --git a/lib/common.php b/lib/common.php index cbe38e105..e3d2622a3 100755 --- a/lib/common.php +++ b/lib/common.php @@ -116,7 +116,7 @@ function orderValue($table, $field, $id) */ function reorderRows($table, $field, $id) { - $righe = database()->select($table, 'id', [$field => $id]); + $righe = database()->select($table, 'id', [$field => $id], ['order' => 'ASC']); $i = 1; foreach ($righe as $riga) {