Module:ItemsByStat: Difference between revisionsGive feedback
SerpentofSet (talk | contribs) mNo edit summary |
SerpentofSet (talk | contribs) m More comments |
||
| Line 46: | Line 46: | ||
-- Sort by cost within slot | -- Sort by cost within slot | ||
table.sort(outData, function(a,b) return a[3]*multBySlot[a[4]]<b[3]*multBySlot[b[4]] end) | table.sort(outData, function(a,b) return a[3]*multBySlot[a[4]]<b[3]*multBySlot[b[4]] end) | ||
return outData | return outData -- outData is a table of tables, one for each Item that has the specified stat, where each inner table has the data specified with inKeys, in order | ||
end | end | ||