Fix Default order by

This commit is contained in:
johnnyq 2025-01-22 19:32:47 -05:00
parent 606f3061d0
commit c5c809791a
1 changed files with 4 additions and 2 deletions

View File

@ -24,15 +24,17 @@ if (isset($_GET['page'])) {
$page = 1;
}
// Order
if (isset($_GET['order']) && $_GET['order'] == 'ASC') {
$order = "ASC";
$disp = "DESC";
} else {
}
if (isset($_GET['order']) && $_GET['order'] == 'DESC') {
$order = "DESC";
$disp = "ASC";
}
// Order
if(isset($order) && $order == "ASC") {
$disp = "DESC";
$order_icon = "<i class='fas fa-sort-down'></i>";