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