diff --git a/backstage/application/api/controllers/api/Dishes.php b/backstage/application/api/controllers/api/Dishes.php index c9cb803..8b5ac38 100644 --- a/backstage/application/api/controllers/api/Dishes.php +++ b/backstage/application/api/controllers/api/Dishes.php @@ -566,7 +566,7 @@ class Dishes extends REST_Controller } public function index3_get() { $dining_hall_id = intval($this->user->dining_hall_id); - $data = $this->Common_model->sql_get_all("select a.*,b.name as meal_name from tb_date a, tb_meal_type b where a.dc_type=b.id and a.dining_hall_id = '{$dining_hall_id}' and dc_date >= '".date("Y-m-d")."' order by dc_date,dc_type limit 50"); + $data = $this->Common_model->sql_get_all("select a.*,b.name as meal_name from tb_date a, tb_meal_type b where a.dc_type=b.id and a.dining_hall_id = '{$dining_hall_id}' and dc_date >= '".date("Y-m-d")."' order by dc_date,b.idx desc limit 50"); $all = array(); $dining_halls = ''; $extra_menus = '';