summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorakshay2024-12-13 12:08:48 +0530
committerGitHub2024-12-13 12:08:48 +0530
commitf6c623be4aea1efdb369eae2fc126bc45fce57f6 (patch)
treed0c105366881107eb853e9525efa603ac72ca51d
parentd747d86c1fb1ef302fa3ed6860ad4fa75d0ddf67 (diff)
downloadDWSIM_lab_migration_module-master.tar.gz
DWSIM_lab_migration_module-master.tar.bz2
DWSIM_lab_migration_module-master.zip
table order by year in descending orderHEADmaster
-rwxr-xr-xlab_details.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/lab_details.inc b/lab_details.inc
index 0f8ea80..57f656f 100755
--- a/lab_details.inc
+++ b/lab_details.inc
@@ -6,6 +6,7 @@ function lab_migration_completed_labs_all()
$query = db_select('lab_migration_proposal');
$query->fields('lab_migration_proposal');
$query->condition('approval_status', 3);
+ $query->orderBy('expected_completion_date','DESC');
$result = $query->execute();
//$result = db_query($query);
if ($result->rowCount() == 0)
@@ -48,6 +49,7 @@ function lab_migration_labs_progress_all()
$query->fields('lab_migration_proposal');
$query->condition('approval_status', 1);
$query->condition('solution_status', 2);
+ $query->orderBy('approval_date','DESC');
$result = $query->execute();
if ($result->rowCount() == 0)
{