From ddc890d03d4faefcb6a2679f91482f54f73f3869 Mon Sep 17 00:00:00 2001 From: Sashi20 Date: Tue, 11 Jun 2024 12:53:32 +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 5b4229c..4bb741e 100755 --- a/flowsheet_details.inc +++ b/flowsheet_details.inc @@ -54,6 +54,7 @@ function dwsim_flowsheet_progress_all() $query->fields('dwsim_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