Module:Transclusion count: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
m 12 revisions imported from wikipedia:Module:Transclusion_count |
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(); |