From c2d3aa9662f3c346e46ff3051df4c80ec0befcd9 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Wed, 12 Sep 2018 16:05:33 +0800 Subject: [PATCH] * code for task #4702. --- module/search/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/search/model.php b/module/search/model.php index 1f7d8d864c..415b1e41bd 100644 --- a/module/search/model.php +++ b/module/search/model.php @@ -308,7 +308,7 @@ class searchModel extends model ->from(TABLE_USERQUERY) ->where('account')->eq($this->app->user->account) ->andWhere('module')->eq($module) - ->orderBy('id_asc') + ->orderBy('id_desc') ->fetchPairs(); if(!$queries) return array('' => $this->lang->search->myQuery); $queries = array('' => $this->lang->search->myQuery) + $queries;