• DListLayout is resorting my data
    4 replies, posted
Hey, I'm trying to achive something using DListLayout, I'm adding few elements, then I'm refreshing it, by using Clear() then again Add(), but the components aren't in the same order, can I do something like Insert where I'm specifing index? Can I sort it? The documentation is very poor, looking at sources also doesnt changes much https://i.imgur.com/825DkjW.png
table.sort
No, I did sorted the table, I also did PrintTable() before layout:Add(), that's not the case, It's nothing about the table which I'm putting into DListLayout
try ipairs, SortedPairs, or next when iterating through your table
Mayby it isn't DListLayout problem, I'm loading this data from util.JSONToTable( string json ) Then order is fucked up, and I can't just simply do table.sort because it does nothing, also table.SortByMember(tab, memberKey, ascending=false) does nothing
Sorry, you need to Log In to post a reply to this thread.