Created
September 27, 2014 00:38
-
-
Save nefftd/1a10f8d3ca40124f6777 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local mystring = "0513|0625|0929" -- and so on | |
local a = {} | |
local i = 1 | |
for num in mystring:gmatch('[^|]+') do | |
a[i] = num | |
i = i + 1 | |
end | |
table.sort(a) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment