mirror of
https://github.com/mt-mods/mail.git
synced 2025-05-01 00:41:43 -04:00
Make sorter local
This commit is contained in:
parent
5af1cf5bb0
commit
0d5ed5aca9
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ function mail.get_message(playername, msg_id)
|
|||
end
|
||||
|
||||
function mail.sort_messages(messages, sortfield, sortdirection)
|
||||
function sorter(field, dir)
|
||||
local function sorter(field, dir)
|
||||
return dir == "2"
|
||||
and (function(a, b) return a[field] > b[field] end)
|
||||
or (function(a, b) return a[field] < b[field] end)
|
||||
|
|
Loading…
Add table
Reference in a new issue