How to organize objects in a folder by their name

Greetings,

I have multiple objects in a folder that are named as such: 0, 1, 2, 3 etc. The problem is, since I am constantly shuffling them around and changing them, they become: 2, 0, 3, 1 etc. (unorganized). How can I sort them by their names? Thank you!

1 Like

Are you talking about organizing it scripting wise, or what is the goal?

he is talking about when you like have a folder and there are parts in the folder then they are sorted like this:
1
2
3
4
5

how to organize them in a script?

I assume you mean this is happening in the Roblox Studio explorer? If so, then that’s not a scripting question.

Yea, that’s what I meant in my question.

You can’t really move them around in the studio UI, but if you have them in a table you can use this:

table.sort(t, function (a, b)
	if a < b then
		return a
	end
end)
3 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.