forked from your-land-mirror/yl_speak_up
sort dialogs in export according to d_sort instead of d_<nr> alphabethicly
This commit is contained in:
parent
d9d10112cf
commit
76f7e37566
@ -97,6 +97,9 @@ yl_speak_up.get_dialog_list_for_export = function(dialog)
|
||||
table.insert(liste, d_id)
|
||||
end
|
||||
end
|
||||
-- now that the list contains only normal dialogs, we can sort by d_sort
|
||||
-- (thus allowing d_9 to be listed earlier than d_10 etc.)
|
||||
table.sort(liste, function(a, b) return dialog.n_dialogs[a].d_sort < dialog.n_dialogs[b].d_sort end)
|
||||
return liste
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user