Module:SkillUnlocks: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 133: Line 133:
elseif TYPE_SORT_ORDER[a.entityType] ~= TYPE_SORT_ORDER[b.entityType] then
elseif TYPE_SORT_ORDER[a.entityType] ~= TYPE_SORT_ORDER[b.entityType] then
return TYPE_SORT_ORDER[a.entityType] < TYPE_SORT_ORDER[b.entityType]
return TYPE_SORT_ORDER[a.entityType] < TYPE_SORT_ORDER[b.entityType]
-- And finally by entity name
    -- Then by subtype
elseif a.subType ~= b.subType then
    return a.subType < b.subType
-- And finally by name
else
else
return a.entityName < b.entityName
return a.entityName < b.entityName
73

edits