Is it possible to sort string values by their name?
local stationName = routeFolder.Stations:GetChildren()
for i = 1, #stationName do
--in here is a script that basically generates a timetable from the children of the Stations folder
end
The reason I can't use the values in any order is because on the return journey the stations list needs to be read in reverse order (from 7 to 1) meaning I would need a way of sorting them by reverse alphabetical order too. I know you can sort tables but is there something similar I could use to sort this? Thanks!

3 comments
The problem is that the station names aren't numbers - the string value names are numbers but the actual values in them are strings.
Ah I wasnt sure, I went based on your heirarchy in the picture you provided. According to that you named all the stations 1-7, which can be turned into numbers via tonumber. Another thing you could do if they are named "RedStation, "BlueStation", etc is add them all to a table when the game loads and use that tables index numbers to modify it from there.
If you create a table at the start that doesnt change, and is in the order they are supposed to be in, you can just always use that table to create a new, organized table.