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
This commit is contained in:
Leo
2017-03-15 19:34:29 -03:00
committed by Jordie
parent 9aaff6e281
commit 4a5cf0ce7d

View File

@@ -190,7 +190,7 @@
output += "<br>[text]<hr style='background:#000000; border:0; height:1px'>"
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