Basic table sorting question

I need to sort the elements of a table (all numerical and non repeated values) from smallest to biggest. I’m coming up empty. I have no idea how to do it and I know it should be super easy.

For example I have:

t = {4, 2, 3, 9, 7, 1, 5}

and now I need to print out:

1
2
3
4
5
7
9

Any ideas? [import]uid: 10835 topic_id: 4210 reply_id: 304210[/import]

Does

table.sort(t)  

work?
[import]uid: 7563 topic_id: 4210 reply_id: 13081[/import]

Facepalm! Well I knew it had to be simple. Thanks, I’m very new to Lua and hadn’t used tables before, so I didn’t know about that. Saved my day thanks. [import]uid: 10835 topic_id: 4210 reply_id: 13101[/import]