From 73f51e85e1eddbbb298b58ce18d112c0513bfdfd Mon Sep 17 00:00:00 2001 From: Sashi20 Date: Thu, 7 Dec 2017 15:57:18 +0530 Subject: Arranged completed flowsheets by completion date --- flowsheet_details.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/flowsheet_details.inc b/flowsheet_details.inc index 05f1701..d857ec2 100755 --- a/flowsheet_details.inc +++ b/flowsheet_details.inc @@ -6,6 +6,7 @@ function dwsim_flowsheet_completed_proposals_all() $query = db_select('dwsim_flowsheet_proposal'); $query->fields('dwsim_flowsheet_proposal'); $query->condition('approval_status', 3); + $query->orderBy('actual_completion_date', 'DESC'); //$query->condition('is_completed', 1); $result = $query->execute(); if ($result->rowCount() == 0) -- cgit