Sort Table By Values?

I’ve Fixed it

function SortTable(a,b,v)
return a[v] > b[v]
end
table.sort(table, SortTable)