sort dialogs in export according to d_sort instead of d_<nr> alphabethicly

This commit is contained in:
Sokomine 2025-01-02 20:16:40 +01:00
parent d9d10112cf
commit 76f7e37566

View File

@ -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