Module:Wd: Difference between revisions

Content deleted Content added
mNo edit summary
mNo edit summary
Line 521:
-- then the "normal" claims would be fully processed first while the "preferred" one might be the only one returned;
-- after sorting, this would be "preferred, normal, normal" and the "normal" claims won't be processed
function sortOnRankssortOnRank(claims)
local rankPos
local ranks = {{}, {}, {}} -- preferred, normal, deprecated
Line 1,777:
if claims then
-- first sort the claims on ranks for better performance
claims = sortOnRankssortOnRank(claims)
-- then iterate through the claims to collect values