UIListLayout Order

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I’d like to change the order of my UIListLayout.

  2. What is the issue? Include screenshots / videos if possible!
    So I made a script with a StarterGui, where players enter a username and a reason. Those values are fired with a RemoteEvent. Everything works fine. The Texts get outputted on a monitor (UIListLayout) with a new generated TextLabel for every message. My Problem is now, that it lists the Texts like this:

Entry 1 - oldest -
Entry 2
Entry 3 - newest -

but I want the newest always to be first like:

Entry 3 - newest -
Entry 2
Entry 1 - oldest -

  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I tried so many different things, but nothings seems to work and before someone sends me a link to the Developer Hub, I was rereading the whole thing like 100 times.

use GuiObject | Documentation - Roblox Creator Hub

5 Likes

Like I said, don’t come up with the link to the Developer Hub, I wouldn’t start a thread if I didn’t look there first. This one doesn’t work for me, since I don’t use any numbers or any alphabetical order. The Texts a random by users generated.

1 Like

Try setting every GUI part in numerical/alphabetical order and set the SortOrder to Name in UIListLayout

1 Like

gillern is right. The LayoutOrder is a number property that you can set, and it the smallest number first in ascending order. It has nothing to do with the name or alphabetical order.

I hope this will help you understand this topic.

I tried adding a ID to every post that has been send, but I don’t really get how I get a ID that’s already used or the latest ID so i can increase that one.

You said you wanted the newest to be first. You could keep track of how many entries have been created, then make it negative and set the LayoutOrder to that number. Then they will be in order of when they were created, because smaller LayoutOrder numbers come first.

1 Like

You got an example for that? I don’t really get what you mean, maybe because its nearly 3am.

1 Like

Never mind, I fixed it. I just added a timestamp to every messages send and now I can order it like that. Still thank y’all for all your input!

2 Likes