Modul:Transclusion count: Unterschied zwischen den Versionen
Modul:Transclusion count (Quelltext anzeigen)
Version vom 27. November 2021, 22:34 Uhr
, vor 4 JahrenSort alphabetically after sorting by count
(Add tabulate function for Wikipedia:Database reports/Templates transcluded on the most pages) |
(Sort alphabetically after sorting by count) |
||
| Zeile 54: | Zeile 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(); | ||