Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. local str = LibK._(Pointshop2.GetRegisteredItems()):chain()
  2. :map(function(item)
  3. return { className = item.className, name = item:GetPrintName() }
  4. end)
  5. :sort(function(a, b)
  6. if tonumber(a.className) and tonumber(b.className) then
  7. return tonumber(a.className) < tonumber(b.className)
  8. elseif tonumber(a) and not tonumber(b) then
  9. return false
  10. else
  11. return a.className < b.className
  12. end
  13. end)
  14. :map(function(entry)
  15. return entry.className .. ": " .. entry.name
  16. end)
  17. :join("\n")
  18. :value()
  19.  
  20. print(str)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement