From de63c67fc4a68692fffe556d8c35400859e86c47 Mon Sep 17 00:00:00 2001 From: jaydeeptrivedi13 Date: Mon, 28 Oct 2024 12:55:00 +0530 Subject: [PATCH] :zap: Log table items ordered from asc to desc --- edwiser-bridge/includes/class-eb-error-logs-table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edwiser-bridge/includes/class-eb-error-logs-table.php b/edwiser-bridge/includes/class-eb-error-logs-table.php index 56a60ab..b71ac16 100644 --- a/edwiser-bridge/includes/class-eb-error-logs-table.php +++ b/edwiser-bridge/includes/class-eb-error-logs-table.php @@ -85,7 +85,7 @@ public function eb_get_table( $post_data, $search_text, $current_page ) { } $tbl_records = array(); - foreach ( $logs as $key => $log ) { + foreach ( array_reverse( $logs ) as $key => $log ) { $row = array(); $row['key'] = $key; $row['status'] = $log['status'];