UIListLayout isn't putting labels in the right place

I have a UIListLayout and set the SortOrder to Name

Every time a text is added, every text’s name is changed to +1 (if there’s 5 text labels then it would be 1,2,3,4,5)

But i’m having this issue where the text will go to a random place after number 10

Is there any other way to do this?

I’m not sure why you’re using the name or values, you should be using the LayoutOrder property on the textlabels, and then having the ListLayout set to follow LayoutOrder.

Also, UIListLayout is automatically set to layoutorder as its default sort order.

FYI name uses alphabetical order, not number order, my guess is that alphabetical order once it hits 10, takes the 1 only into account, as its not a number based sort order, its a string based sort order.

1 Like

I feel very dumb. It’s such an easy solution!

1 Like