I have this code for a quiz I\'m doing
for i=#t,2,-1 do local swapped = false for j=1,i-1 do if t[j]>t[j+1] then t[j],t[j+1] =