how can I sort tables within a table?
like that (Original table):
local spells = {
--
{
instantName = 'Flame Strike',
words = 'exori flam',
lvl = 10,
mana = 20,
prem = false,
exhaustion = 1000,
groups = 1,
icon = 89,
needlearn = false,
vocations = {1,2,5,6},
},
--
{...