| View previous topic :: View next topic |
| Author |
Message |
the underminer
Joined: 03 Oct 2005 Posts: 124 Location: Netherlands
|
Posted: Mon Oct 16, 2006 5:04 pm Post subject: sorting |
|
|
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 |
|
| Back to top |
|
 |
cheriff Regular
Joined: 23 Jun 2004 Posts: 262 Location: Sydney.au
|
Posted: Mon Oct 16, 2006 6:20 pm Post subject: |
|
|
easiest way would be to name it level02.lua.
May not be what you wanh, tho... _________________ Damn, I need a decent signature! |
|
| Back to top |
|
 |
romero126
Joined: 24 Dec 2005 Posts: 200
|
Posted: Tue Oct 17, 2006 5:10 am Post subject: |
|
|
| table.sort look that up in the LUA Refrence guide. You actually can sort Level1.lua - Level30.lua quick and easily. |
|
| Back to top |
|
 |
|