I have this list of fonts inside a ScrollingFrame, sorted alphabetically by name:
If I print the ScrollingFrame content, I get an unsorted list
for i, v in pairs(SFrameFontes:GetChildren()) do
print("i, v: ", i, v)
end
"i, v: " 1 UIListLayout
"i, v: " 2 Ubuntu
"i, v: " 3 Legacy
"i, v: " 4 Arial
"i, v: " 5 ArialBold
"i, v: " 6 SourceSans
"i, v: " 7 SourceSansBold
"i, v: " 8 SourceSansSemibold
"i, v: " 9 SourceSansLight
"i, v: " 10 SourceSansItalic
"i, v: " 11 Bodoni
But I need to get the numbers of the items in its sorted positions, for example: “Arial” must be 1, “ArialBold” = 2, “Boldoni” = 3, and so on…
How to get an item number/position inside a UIListLayout sorted by name?