Module:Skills: Difference between revisions

Fixed sorting on growth times
(Fixed sorting of farming seed/crop values)
(Fixed sorting on growth times)
Line 93: Line 93:
     result = result..'\r\n|'..Icons.Icon({seed.name, type='item', size='50', notext=true})..'||[['..seed.name..']]'
     result = result..'\r\n|'..Icons.Icon({seed.name, type='item', size='50', notext=true})..'||[['..seed.name..']]'
     result = result..'||'..seed.farmingLevel..'||'..Shared.formatnum(seed.farmingXP)
     result = result..'||'..seed.farmingLevel..'||'..Shared.formatnum(seed.farmingXP)
     result = result..'||'..Shared.timeString(seed.timeToGrow, true)
     result = result..'||data-sort-value="'..seed.timeToGrow..'"|'..Shared.timeString(seed.timeToGrow, true)
     result = result..'||data-sort-value="'..seed.sellsFor..'"|'..Icons.GP(seed.sellsFor)
     result = result..'||data-sort-value="'..seed.sellsFor..'"|'..Icons.GP(seed.sellsFor)