Cómo ver el mayor valor en una tabla lua

loltable = {1, 2, 3, 4, 1, 2, 37, 1, 0}
table.sort(loltable)
print(loltable[#loltable])
Cautious Centipede