2,869
edits
No edit summary |
No edit summary |
||
Line 190: | Line 190: | ||
-- Put GP and SC at the top, and remove them from the list | -- Put GP and SC at the top, and remove them from the list | ||
-- to avoid sorting and re-adding them below. | -- to avoid sorting and re-adding them below. | ||
if courseItems['GP'] then ul:tag('li'):wikitext(getItemIcon('GP', courseItems['GP'])) end | |||
if courseItems['SC'] then ul:tag('li'):wikitext(getItemIcon('SC', courseItems['SC'])) end | |||
if | |||
courseItems['GP'] = nil | |||
courseItems['SC'] = nil | |||
local itemList = Shared.sortDictionary(courseItems, | local itemList = Shared.sortDictionary(courseItems, | ||
function(a, b) return a.item < b.item end, | function(a, b) return a.item < b.item end, |
edits