Add ascending/descending, fix selection issue

This commit is contained in:
Athozus 2023-04-05 18:21:01 +02:00
parent 3e2d022c87
commit 618b338295
No known key found for this signature in database
GPG key ID: B50895022E8484BF
5 changed files with 32 additions and 17 deletions

View file

@ -33,7 +33,7 @@ function mail.show_inbox(name, sortfield, sortdirection)
table[0,0.7;5.75,8.35;inbox;#999,]] .. S("From") .. "," .. S("Subject")
local formspec = { inbox_formspec }
local entry = mail.get_storage_entry(name)
local messages = mail.sort_messages(entry.inbox, sortfield, sortdirection)
local messages = mail.sort_messages(entry.inbox, tostring(sortfield), tostring(sortdirection))
mail.message_drafts[name] = nil