From 4a5cf0ce7d43ba50a57b9737987dbc6735b3d9cd Mon Sep 17 00:00:00 2001 From: Leo Date: Wed, 15 Mar 2017 19:34:29 -0300 Subject: [PATCH] Messages(notes, watchlists, messages) are now sorted by descending instead (#25080) * Messages(notes, watchlists, messages) are now sorted by the time descending instead of ascending * Changes so only notes have desc ordering instead of memos and watchlist enties * how did this even happen --- code/modules/admin/sql_message_system.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/admin/sql_message_system.dm b/code/modules/admin/sql_message_system.dm index 5540308406e..5e959f140ea 100644 --- a/code/modules/admin/sql_message_system.dm +++ b/code/modules/admin/sql_message_system.dm @@ -190,7 +190,7 @@ output += "
[text]
" if(target_ckey) target_ckey = sanitizeSQL(target_ckey) - var/DBQuery/query_get_messages = dbcon.NewQuery("SELECT type, secret, id, adminckey, text, timestamp, server, lasteditor FROM [format_table_name("messages")] WHERE type <> 'memo' AND targetckey = '[target_ckey]' ORDER BY timestamp") + var/DBQuery/query_get_messages = dbcon.NewQuery("SELECT type, secret, id, adminckey, text, timestamp, server, lasteditor FROM [format_table_name("messages")] WHERE type <> 'memo' AND targetckey = '[target_ckey]' ORDER BY timestamp DESC") if(!query_get_messages.warn_execute()) return var/messagedata