From fed2ecbf66b5f3b30b329d04b26befc8a8c3968c Mon Sep 17 00:00:00 2001 From: Sashi20 Date: Tue, 11 Jun 2024 12:59:56 +0530 Subject: Arrange approval date in descending order --- custom_model_details.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/custom_model_details.inc b/custom_model_details.inc index 5c2b8aa..cde7b47 100755 --- a/custom_model_details.inc +++ b/custom_model_details.inc @@ -55,6 +55,7 @@ function custom_model_progress_all() $query->fields('custom_model_proposal'); $query->condition('approval_status', 1); $query->condition('is_completed', 0); + $query->orderBy('approval_date',DESC); $result = $query->execute(); if ($result->rowCount() == 0) { -- cgit