From 95eafacf76ba3d271bcbdab57a85b08773907066 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Sun, 6 Sep 2015 10:14:11 +0200 Subject: [PATCH] sorting for newest text added in adv function --- dbd/qq/SYS_TEXT_GET_TAG_ADV.php | 2 +- dbd/qq/SYS_TEXT_SEARCH_TAG.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dbd/qq/SYS_TEXT_GET_TAG_ADV.php b/dbd/qq/SYS_TEXT_GET_TAG_ADV.php index 81562aa..c23a9f6 100644 --- a/dbd/qq/SYS_TEXT_GET_TAG_ADV.php +++ b/dbd/qq/SYS_TEXT_GET_TAG_ADV.php @@ -7,6 +7,6 @@ class SYS_TEXT_GET_TAG_ADV extends \SYSTEM\DB\QP { ' LEFT JOIN system_text_tag ON system_text.id = system_text_tag.id'. ' LEFT JOIN system_user AS a ON system_text.author = a.id'. ' LEFT JOIN system_user AS ae ON system_text.author_edit = ae.id'. -' WHERE tag = ? and lang = ?;'; +' WHERE tag = ? and lang = ? ORDER BY time_create DESC;'; } } \ No newline at end of file diff --git a/dbd/qq/SYS_TEXT_SEARCH_TAG.php b/dbd/qq/SYS_TEXT_SEARCH_TAG.php index 2595bc6..df2adf3 100644 --- a/dbd/qq/SYS_TEXT_SEARCH_TAG.php +++ b/dbd/qq/SYS_TEXT_SEARCH_TAG.php @@ -7,6 +7,6 @@ class SYS_TEXT_SEARCH_TAG extends \SYSTEM\DB\QP { ' LEFT JOIN system_text_tag ON system_text.id = system_text_tag.id'. ' LEFT JOIN system_user AS a ON system_text.author = a.id'. ' LEFT JOIN system_user AS ae ON system_text.author_edit = ae.id'. -' WHERE tag = ? and (system_text.id LIKE ? OR system_text.text LIKE ? OR tag LIKE ?);'; +' WHERE tag = ? and (system_text.id LIKE ? OR system_text.text LIKE ? OR tag LIKE ?) ORDER BY time_create DESC;'; } } \ No newline at end of file