diff --git a/htdocs/compta/bank/bankentries_list.php b/htdocs/compta/bank/bankentries_list.php index 0c93c89e5682a..2a3b2df854873 100644 --- a/htdocs/compta/bank/bankentries_list.php +++ b/htdocs/compta/bank/bankentries_list.php @@ -103,7 +103,7 @@ $offset = $limit * $page; $pageprev = $page - 1; $pagenext = $page + 1; -if (! $sortorder) $sortorder='ASC'; +if (! $sortorder) $sortorder='desc,desc,desc'; if (! $sortfield) $sortfield='b.datev,b.dateo,b.rowid'; $mode_balance_ok=false; @@ -113,7 +113,6 @@ $sortfield = 'b.datev,b.dateo,b.rowid'; if ($id > 0 || ! empty($ref) || $search_account > 0) $mode_balance_ok = true; } -if (strtolower($sortorder) == 'desc') $mode_balance_ok = false; $object = new Account($db); if ($id > 0 || ! empty($ref))