From d62036f0bbd46e4a518f4e0c253ffe9e4653e85b Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Mon, 26 Mar 2018 13:08:39 +0530 Subject: [PATCH] student view --- Apollo/api/application/models/SeesionMaster_model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Apollo/api/application/models/SeesionMaster_model.php b/Apollo/api/application/models/SeesionMaster_model.php index bab6c79d..5b83bc62 100755 --- a/Apollo/api/application/models/SeesionMaster_model.php +++ b/Apollo/api/application/models/SeesionMaster_model.php @@ -73,8 +73,8 @@ class SeesionMaster_model extends CI_Model { $this->db->join(SESSIONDETAILS.' as SD', 'SM.SessionID = SD.SessionID'); $this->db->join(UNIVERSITY.' as US', 'US.UniversityID = SD.UniversityID'); $this->db->where('SD.IsActive','1'); - $this->db->order_by('SM.CreatedOn','DESC'); - $this->db->group_by('SM.SessionName','DESC'); + $this->db->order_by('SM.SessionID','DESC'); + $this->db->group_by('SM.SessionID','DESC'); $sessionDetails = $this->db->get(); if($sessionDetails->result()){