Advertisement
Znailxxor

Untitled

Jun 3rd, 2015
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.25 KB | None | 0 0
  1. Aspects = {
  2.     aer = {
  3.         name = "Aer",
  4.         tier = 1
  5.     } -- There are a ton more of these with different tiers
  6. }
  7.  
  8. table.sort(Aspects, function(a, b) return a.tier > b.tier end)
  9.  
  10. for _, v in pairs(Aspects) do
  11.     print(v.name.." ("..tostring(v.tier)..")")
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement