Discuss using and improving Lua and the Lua Player specific to the PSP.
Moderators: Shine, Insert_witty_name
-
the underminer
- Posts: 123
- Joined: Mon Oct 03, 2005 4:25 am
- Location: Netherlands
Post
by the underminer »
When I'm trying to sort a filelist that contains level1.lua,level2.lua and level 10.lua, level10.lua comes after level1.lua.
How can I sort the list so that level10.lua comes after level2.lua?
Behold! The Underminer got hold of a PSP
-
cheriff
- Regular
- Posts: 258
- Joined: Wed Jun 23, 2004 5:35 pm
- Location: Sydney.au
Post
by cheriff »
easiest way would be to name it level02.lua.
May not be what you wanh, tho...
Damn, I need a decent signature!
-
romero126
- Posts: 200
- Joined: Sat Dec 24, 2005 2:42 pm
Post
by romero126 »
table.sort look that up in the LUA Refrence guide. You actually can sort Level1.lua - Level30.lua quick and easily.