| |
| |
| |
| |
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 25 Oct 2016 12:40 PM |
t = {7,3,9,12,1,54,100,23} table.sort(t) for _,v in pairs(t) do print(v..",")
> 1,3,7,9,12,23,54,100
-- if I'm using table.sort correctly. I always seem to mess it up by not writing by own function for the second argument. |
|
|
| Report Abuse |
|
|
| 25 Oct 2016 12:41 PM |
nvm it was math.sqrt() thanks all
|
|
|
| Report Abuse |
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 25 Oct 2016 12:45 PM |
"nvm it was math.sqrt() thanks all"
Uhhhh... what?
Your question didn't give any hint that you wanted to get the square root of it.
|
|
|
| Report Abuse |
|