From 2dc8412c23c7d56e024d9834fb5c1622df449413 Mon Sep 17 00:00:00 2001 From: akshaythakur8764 Date: Thu, 12 Dec 2024 11:45:53 +0530 Subject: table order by year --- lab_details.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/lab_details.inc b/lab_details.inc index 8f30b59..f912dde 100755 --- a/lab_details.inc +++ b/lab_details.inc @@ -5,6 +5,7 @@ $query = db_select('lab_migration_proposal'); $query->fields('lab_migration_proposal'); $query->condition('approval_status', 3); + $query->orderBy('approval_date', 'DESC'); $result = $query->execute(); //$result = db_query($query); $proposal_rows = array(); -- cgit