Editing Module:LevelTablesGive feedback
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 43: | Line 43: | ||
--]] | --]] | ||
p.write_power_increase_table = function(frame) | p.write_power_increase_table = function(frame) | ||
-- Read and validate the arguments passed from the #invoke call. | -- Read and validate the arguments passed from the #invoke call. | ||
local property = frame.args[1] | local property = frame.args[1] | ||
| Line 83: | Line 79: | ||
-- Sort the hero list alphabetically, ignoring "The " for proper sorting. | -- Sort the hero list alphabetically, ignoring "The " for proper sorting. | ||
table.sort(filtered_heroes, | table.sort(filtered_heroes, function(a, b) | ||
return get_sortable_name(a.Name) < get_sortable_name(b.Name) | |||
end) | |||
-- Begin building the main data table. | -- Begin building the main data table. | ||