| |
|
Kodran
|
  |
| Joined: 15 Aug 2013 |
| Total Posts: 5330 |
|
| |
|
| |
|
|
| 31 Aug 2016 09:37 PM |
| what if I want to sort through objects |
|
|
| Report Abuse |
|
|
Kodran
|
  |
| Joined: 15 Aug 2013 |
| Total Posts: 5330 |
|
| |
|
|
| 31 Aug 2016 11:08 PM |
Since i cannot use the LessThan sign on roblox, go to this link:
http:// paste bin. com/ F8JY h6MX |
|
|
| Report Abuse |
|
|
|
| 31 Aug 2016 11:10 PM |
| if you want to sort objects named 1-whatever you can either just use tonumber(val1.Name) and tonumber(val2.Name) ## ################################ --string pattern for first match that contains digits tonumber(val2.Name:match("%d+")) |
|
|
| Report Abuse |
|
|
|
| 31 Aug 2016 11:10 PM |
if you want to sort objects named 1-whatever
you can either just use tonumber(val1.Name) and also tonumber(val2.Name)
or you can do
tonumber(val1.Name:match("%d+")) --string pattern for first match that contains digits tonumber(val2.Name:match("%d+"))
** |
|
|
| Report Abuse |
|
|
|
| 31 Aug 2016 11:11 PM |
| table.sort is automatically in alphabetical and case order |
|
|
| Report Abuse |
|
|