From 2b5764ba9ca509e29eb51198736d9009f77f859d Mon Sep 17 00:00:00 2001 From: Sashi20 Date: Tue, 11 Jun 2024 13:20:54 +0530 Subject: Arrange approval date in descending order --- flowsheet_details.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/flowsheet_details.inc b/flowsheet_details.inc index f64ab42..ac14d59 100755 --- a/flowsheet_details.inc +++ b/flowsheet_details.inc @@ -52,6 +52,7 @@ function om_flowsheet_progress_all() $query->fields('om_flowsheet_proposal'); $query->condition('approval_status', 1); $query->condition('is_completed', 0); + $query->orderBy('approval_date', DESC); $result = $query->execute(); if ($result->rowCount() == 0) { -- cgit