Module:Pets: Difference between revisions

sorted the pet list alphabetically
(Separated Pet navbox into Skill Pets and Other Pets (with plans to add a Boss Pets section when v0.19.0 drops))
(sorted the pet list alphabetically)
Line 161: Line 161:
     end
     end
   end
   end
    
   table.sort(skillPetList, function(a, b) return a < b end)
  table.sort(otherPetList, function(a, b) return a < b end)
   result = result..'\r\n|-\r\n!Skill Pets\r\n|'..table.concat(skillPetList, ' • ')
   result = result..'\r\n|-\r\n!Skill Pets\r\n|'..table.concat(skillPetList, ' • ')
   result = result..'\r\n|-\r\n!Other Pets\r\n|'..table.concat(otherPetList, ' • ')
   result = result..'\r\n|-\r\n!Other Pets\r\n|'..table.concat(otherPetList, ' • ')