I am trying to fetch and sort a list of items before adding them to a drop-down list. Here is the code:
destinations = Destination_Modifier[true] sort by Destination_code;
for each destination in destinations
{
Destination_Code:ui.add(destination.Destination_code);
}
It fetches and adds successfully but only the first items are sorted and then many items are not.