Fix Default order by

This commit is contained in:
johnnyq
2025-01-22 19:32:47 -05:00
parent 606f3061d0
commit c5c809791a

View File

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