summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorprashantsinalkar2021-02-11 14:05:23 +0530
committerprashantsinalkar2021-02-11 14:05:23 +0530
commite1e3007a02a98a13f3b8134709f4586b7ce4069d (patch)
treea4298524db29668114ee03a9ec22168a231f6c05
parentf0b454aa06a631d20e896cef3ea5704fed3e5e72 (diff)
downloadDWSIM_textbook_companion-e1e3007a02a98a13f3b8134709f4586b7ce4069d.tar.gz
DWSIM_textbook_companion-e1e3007a02a98a13f3b8134709f4586b7ce4069d.tar.bz2
DWSIM_textbook_companion-e1e3007a02a98a13f3b8134709f4586b7ce4069d.zip
Viewing completed books in descending order
-rw-r--r--tbc_details.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tbc_details.inc b/tbc_details.inc
index 6316b80..db2dd0b 100644
--- a/tbc_details.inc
+++ b/tbc_details.inc
@@ -8,7 +8,7 @@ function dwsim_tbc_completed_book_proposal_all()
$query->leftJoin('textbook_companion_proposal', 'po', 'pe.proposal_id = po.id');
$query->condition('po.proposal_status', 3);
$query->condition('pe.approval_status', 1);
- $query->orderBy('pe.book', 'ASC');
+ $query->orderBy('pe.year', 'DESC');
$result = $query->execute();
if ($result->rowCount() == 0)