Craftero
|
  |
| Joined: 24 Jun 2011 |
| Total Posts: 1451 |
|
|
| 29 Nov 2015 12:20 PM |
How do I sort a Table as follows..
Point1 Point2 Point3 ...etc.
Any help or advise would be greatly appreciated. |
|
|
| Report Abuse |
|
|
OzzyFin
|
  |
| Joined: 07 Jun 2011 |
| Total Posts: 3600 |
|
|
| 29 Nov 2015 12:24 PM |
table.sort(t)
when there are only string values, it will sort them in alphabetical order |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2015 12:27 PM |
table.sort(table, func)
http://www.lua.org/pil/19.3.html
|
|
|
| Report Abuse |
|
|