sorting for newest text added in adv function
This commit is contained in:
parent
ac22f35479
commit
95eafacf76
@ -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;';
|
||||
}
|
||||
}
|
||||
@ -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;';
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user