Module:Transclusion count: Difference between revisions
Richardpruen (talk | contribs) m 1 revision imported |
Wikipedia >GKFX Sort alphabetically after sorting by count |
||
Line 54: | Line 54: | ||
end | end | ||
table.sort(list, function(a, b) | table.sort(list, function(a, b) | ||
return a[2] > b[2] | return (a[2] == b[2]) and (a[1] < b[1]) or (a[2] > b[2]) | ||
end) | end) | ||
local lang = mw.getContentLanguage(); | local lang = mw.getContentLanguage(); |